Unwin.qxd  05/05/06  1:40 PM  Page i

Statistics and Computing

Series Editors:
J. Chambers
D. Hand
W. Härdle

Unwin.qxd  05/05/06  1:40 PM  Page i

Statistics and Computing

Series Editors:
J. Chambers
D. Hand
W. Härdle

Unwin.qxd  05/05/06  1:40 PM  Page ii

Statistics and Computing

Brusco/Stahl: Branch-and-Bound Applications in Combinatorial Data Analysis.
Dalgaard: Introductory Statistics with R.
Gentle: Elements of Computational Statistics.
Gentle: Numerical Linear Algebra for Applications in Statistics.
Gentle: Random Number Generation and Monte Carlo Methods, 2nd Edition.
Härdle/Klinke/Turlach: XploRe: An Interactive Statistical Computing Environment.
Hoermann/Leydold/Derflinger: Automatic Nonuniform Random Variate Generation.
Krause/Olson: The Basics of S-PLUS, 4th Edition.
Lange: Numerical Analysis for Statisticians.
Lemmon/Schafer: Developing Statistical Software in Fortran 95
Loader: Local Regression and Likelihood.
Ó Ruanaidh/Fitzgerald: Numerical Bayesian Methods Applied to Signal Processing.
Pannatier: VARIOWIN: Software for Spatial Data Analysis in 2D.
Pinheiro/Bates: Mixed-Effects Models in S and S-PLUS.
Venables/Ripley: Modern Applied Statistics with S, 4th Edition.
Venables/Ripley: S Programming.
Wilkinson: The Grammar of Graphics, 2nd Edition.

Unwin.qxd  05/05/06  1:40 PM  Page iii

Antony Unwin
Martin Theus
Heike Hofmann

Graphics of
Large Datasets

Visualizing a Million

Unwin.qxd  05/05/06  1:40 PM  Page iv

Antony Unwin
Department of Computer 
Oriented Statistics and 
Data Analysis

University of Augsburg
Augsburg 86135
Germany

Martin Theus
Department of Computer 
Oriented Statistics and 
Data Analysis

University of Augsburg
Augsburg 86135
Germany

Heike Hofmann
Department of Statistics
Iowa State University
Ames, IA 50011-1210

Series Editors:
J. Chambers
Bell Labs, Lucent 
Technologies
600 Mountain Ave.
Murray Hill, NJ 07974
USA

D. Hand
Department of
Mathematics

South Kensington Campus
Imperial College, London
London
SW7 2AZ
United Kingdom

W. Härdle
Institut für Statistik und 

Ökonometrie

Humboldt-Universität 

zu Berlin

Spandauer Str. 1
D-10178 Berlin, Germany

Library of Congress Control Number: 2006922760

ISBN-10: 0-387-32906-4
ISBN-13: 978-0387-32906-2

Printed on acid-free paper.

© 2006 Springer Science+Business Media, LLC
All rights reserved. This work may not be translated or copied in whole or in part without the written
permission of the publisher (Springer Science+Business Media, LLC, 233 Spring Street, New York,
NY  10013, USA), except  for  brief excerpts  in  connection  with  reviews  or  scholarly  analysis. Use
in connection  with  any  form  of information  storage  and  retrieval, electronic  adaptation, computer
software, or by similar or dissimilar methodology now known or hereafter developed is forbidden.
The  use  in  this  publication  of trade  names, trademarks, service  marks, and  similar  terms, even  if
they are not identified as such, is not to be taken as an expression of opinion as to whether or not they
are subject to proprietary rights.

Printed in Singapore

(KYO)

9 8 7 6 5 4 3 2 1

springer.com

Preface

Analysing data is fun. It is fascinating to ﬁnd out about different topics,
and each dataset brings new challenges. Whether you are looking at times
of goals scored in Bundesliga soccer games, ultrasound measurements of
babies in the womb, or company bankruptcy data, there is always some-
thing new to be learnt. Graphic displays play a major role in data anal-
ysis, and all the main authors of this book have spent a lot of research
time studying graphics and ways to improve and enhance them. We have
also spent a lot of time actually analysing data. The two go together.

One of the major problems over the years has been representing data
from large datasets. Initially, computers could barely read in a large
dataset, so whether you could display it sensibly or not was not rele-
vant. Gradually, computers have been able to cope with larger and larger
datasets, and some weaknesses of standard data graphics have become
apparent. In tackling these problems, we have become aware that there
is knowledge around as to how to display large datasets, but it is not
readily available, certainly not in one place. We hope that our book will
help others interested in visualizing large datasets to ﬁnd out more eas-
ily what has been done and to contribute themselves. More especially, we
hope it will help data analysts in analysing their data.

This book grew out of discussions at a visualization workshop held
in Augsburg in 2002. The main authors of each guest chapter (Dianne
Cook, Ed Wegman, Graham Wills, Simon Urbanek, Steve Marron) were
all there, and we are grateful to them both for agreeing to contribute to
our book and for many insightful discussions at the workshop and on
other occasions.

Many people have contributed to our understanding and knowledge of
graphics and data analysis. Discussions at conferences, debates via email,
and, especially, debates about how to analyse particular datasets have all
left lasting impressions. Experimenting with software, our own and that
of many others, has also taught us a great deal. We would like to thank
in no particular order G ¨unther Sawitzki, Fred Eicker, Paul Velleman,

vi

Preface

Luke Tierney, Lee Wilkinson, Peter Dirschedl, Rick Becker, Allan Wilks,
Andreas Buja, Debbie Swayne, John Sall, Bob Rodriguez, Rick Wicklin,
Sandy Weisberg, Bill Eddy, Wolfgang H ¨ardle, Junji Nakano, Moon Yul
Huh, JJ Lee, Adi Wilhelm, Daniella DiBenedetto, Paul Campbell, Carlo
Lauro, Roberta Siciliano, Al Inselberg, Peter Huber, Daryl Pregibon,
Steve Eick, Audris Mockus, Michael Friendly, Sigbert Klinke, Matthias
Nagel, R ¨udiger Ostermann, Axel Benner, Friedrich Pukelsheim, Chris-
tian R¨ottger, Thomas Klein, Annerose Zeis, Marion Jackson, Enda Treacy,
David Harmon, Robert Spence, Berwin Turlach, Bill Venables, Brian
Ripley, — and too many people associated with R to name individually.
Thanks are also due to former colleagues in the Statistics Department
at Trinity College Dublin for provocative exchanges both over coffee and
long into the night at the Irish Statistics conferences (graphical discus-
sions, though not necessarily about graphics).

Some people read parts (or all!) of the book and made pertinent, help-
ful comments, but we also beneﬁtted from encouraging and constructive
criticism from Springer’s anonymous referees. For help with the proof-
reading we are indebted to Lindy Wolsleben, Estelle Feldman, Veronika
Schuster, and Sandra Schulz. Being students, Veronika and Sandra were
properly respectful and careful. Lindy and Estelle called a spade a spade,
especially when we had called it a spode. Our thanks to all of them; au-
thors need both kinds of help. Needless to say (but we will say it anyway),
any remaining errors are our fault. John Kimmel has been a supportive
editor and it is always a pleasure to chat with him at the Springer stand
at meetings. (We hope that the sales ﬁgures for our book will be good
enough that he will still be prepared to talk to us in future.) We would
also like to thank the six anonymous reviewers who gave signiﬁcant in-
put at various stages of the project. It takes a good editor like John to ﬁnd
these people.

Graphics research depends on good, if not exceptional, software to
turn visualization ideas into practice. In 1987, one of us (AU) got a small
grant from Apple Computers to write graphics software for teaching. (It
is hard to believe, but I actually wrote some code myself initially. When
I saw how good the students employed on the project were, I vowed
never to write any code again.) In Dublin, it was the students Michael
Lloyd, Graham Wills, and Eoin McDonnell who led the way. In Augsburg,
where the Impressionists’ software packages have been developed, we
have beneﬁtted from the skills of George Hawkins, Stefan Lauer, Heike
Hofmann, Bernd Siegl, Christian Ordelt, Sylvia Winkler, Simon Urbanek,
Klaus Bernt, Claus-Michael M ¨uller, Ren´e Keller, Markus Helbig, Tobias
Wichtrey, Alex Gouberman, Sergei Potapov, and Alex Gribov.

In 1999, John Chambers generously donated his ACM award money to
the creation of a special prize for the development of statistical software
by students. Recognition of the important contribution software makes to

Preface

vii

progress in research was long overdue, and we are delighted that three of
our students have already won the prize.

Data analysis is a practical science and much of our knowledge and
ideas stems from project collaborations with colleagues in universities
and in ﬁrms. It would be impossible to talk about the problems arising
from large datasets, without actually working on problems like these. We
are grateful to our project partners for their cooperation and for actually
sharing their data with us. It is all too easy to forget just how much work
and effort is involved in collecting the data in a dataset.

Finally, as academics, we are grateful to our universities for sup-
porting and encouraging our research, to the Deutsche Forschungsge-
meinschaft for some project support, and, especially, to the Volkswagen
Stiftung, whose initial funding led to the founding of the Department
of Computer Oriented Statistics and Data Analysis in Ausgburg, which
brought us all together.

Apple is a registered trademark of Apple Computer, Inc., AT&T is a registered
trademark of AT&T Corp., DataDesk is a registered trademark of Data Descrip-
tion, Inc., IBM is a registered trademark of International Business Machines
Corporation, Inxight TableLens is a registered trademark of Inxight Software,
Inc., JMP, SAS and SAS-Insight are registered trademarks of SAS Institute Inc.
and/or its afﬁliates, OpenGL is a trademark of Silicon Graphics, Inc., PostScript
is a registered trademark of Adobe Systems Incorporated, S-PLUS is a registered
trademark of the Insightful Corporation, SPSS is a registered trademark of SPSS
Inc., UNIX is a registered trademark of The Open Group., Windows is a regis-
tered trademark of Microsoft Corporation. Other third-party trademarks belong
to their respective owners.

Contents

1

Introduction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
1
1
1.1 Introduction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
4
1.2 Data Visualization . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
7
1.3 Research Literature . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
9
1.4 How Large Is a Large Dataset? . . . . . . . . . . . . . . . . . . . . . . . . . .
1.5 The Effects of Largeness . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 17
1.5.1 Storage . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 18
1.5.2 Quality . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 19
1.5.3 Complexity . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 20
1.5.4 Speed . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 20
1.5.5 Analyses . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 21
1.5.6 Displays . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 21
1.5.7 Graphical Formats . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 22
1.6 What Is in This Book . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 22
1.7 Software . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 23
1.8 What Is on the Website . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 24
1.8.1 Files and Code for Figures . . . . . . . . . . . . . . . . . . . . . . . . . 24
1.8.2 Links to Software . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 24
1.8.3 Datasets . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 25
1.9 Contributing Authors . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 26

Part I Basics

2

Statistical Graphics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 31
2.1 Introduction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 31
2.2 Plots for Categorical Data . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 31

2.2.1 Barcharts and Spineplots for Univariate

Categorical Data . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 32
2.2.2 Mosaic Plots for Multi-dimensional Categorical Data 33
2.3 Plots for Continuous Data . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 36

x

Contents

3

4

2.3.1 Dotplots, Boxplots, and Histograms . . . . . . . . . . . . . . . . 36
2.3.2 Scatterplots, Parallel Coordinates, and the Grand

Tour . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 39
2.4 Data on Mixed Scales . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 44
2.5 Maps . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 47
2.6 Contour Plots and Image Maps . . . . . . . . . . . . . . . . . . . . . . . . . . 49
2.7 Time Series Plots . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 50
2.8 Structure Plots . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 51

Scaling Up Graphics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 55
3.1 Introduction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 55
3.2 Upscaling as a General Problem in Statistics . . . . . . . . . . . . . . 55
3.3 Area Plots . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 56
3.3.1 Histograms . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 57
3.3.2 Barcharts . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 58
3.3.3 Mosaic Plots . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 60
3.4 Point Plots . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 62
3.4.1 Boxplots . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 62
3.4.2 Scatterplots . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 63
3.4.3 Parallel Coordinates . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 65
3.5 From Areas to Points and Back . . . . . . . . . . . . . . . . . . . . . . . . . . 67
3.5.1 α-Blending and Tonal Highlighting . . . . . . . . . . . . . . . . 69
3.6 Modifying Plots . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 71
3.7 Summary . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 72

Interacting with Graphics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 73
4.1 Introduction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 73
4.2 Interaction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 74
4.3 Interaction and Data Displays . . . . . . . . . . . . . . . . . . . . . . . . . . . 75
4.3.1 Querying . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 75
4.3.2 Selection and Linking . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 77
4.3.3 Selection Sequences . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 78
4.3.4 Varying Plot Characteristics . . . . . . . . . . . . . . . . . . . . . . . 82
4.3.5 Interfaces and Interaction . . . . . . . . . . . . . . . . . . . . . . . . . 84
4.3.6 Degrees of Linking . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 86
4.3.7 Warnings and Redmarking . . . . . . . . . . . . . . . . . . . . . . . . 87
4.4 Interaction and Large Datasets . . . . . . . . . . . . . . . . . . . . . . . . . . 88
4.4.1 Querying . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 88
4.4.2 Selection, Linking, and Highlighting . . . . . . . . . . . . . . . 89
4.4.3 Varying Plot Characteristics for Large Datasets . . . . . 92
4.5 New Interactive Tasks . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 98
4.5.1 Subsetting . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 98
4.5.2 Aggregation and Recoding . . . . . . . . . . . . . . . . . . . . . . . . . 99
4.5.3 Transformations . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 99
4.5.4 Weighting . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 99

4.5.5 Managing Screen Layout . . . . . . . . . . . . . . . . . . . . . . . . . . 101
4.6 Summary and Future Directions . . . . . . . . . . . . . . . . . . . . . . . . . 101

Contents

xi

Part II Applications

5 Multivariate Categorical Data — Mosaic Plots . . . . . . . . . . . .105
5.1 Introduction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 105
5.2 Area-based Displays . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 105
5.2.1 Weighted Displays and Weights in Datasets . . . . . . . . 107
5.3 Displays and Techniques in One Dimension . . . . . . . . . . . . . . . 107
5.3.1 Sorting and Reordering . . . . . . . . . . . . . . . . . . . . . . . . . . . 110
5.3.2 Grouping, Averaging, and Zooming . . . . . . . . . . . . . . . . . 111
5.4 Mosaic Plots . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 113
5.4.1 Combinatorics of Mosaic Plots . . . . . . . . . . . . . . . . . . . . . 114
5.4.2 Cases per Pixel and Pixels per Case . . . . . . . . . . . . . . . . 116
5.4.3 Calibrating the Eye . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 116
5.4.4 Gray-shading . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 119
5.4.5 Rescaling Binsizes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 122
5.4.6 Rankings . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 123
5.5 Summary . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 123

6 Rotating Plots . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .125
6.1 Introduction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 125
6.1.1 Type of Data . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 126
6.1.2 Visual Methods for Continuous Variables . . . . . . . . . . . 127
6.1.3 Scaling Up Multiple Views for Larger Datasets . . . . . . 128
6.2 Beginning to Work with a Million Cases . . . . . . . . . . . . . . . . . . 128
6.2.1 What Happens in GGobi, a Real-time System? . . . . . . 128
6.2.2 Reducing the Number of Cases . . . . . . . . . . . . . . . . . . . . 129
6.2.3 Density Estimation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 131
6.2.4 Screen Real Estate Indexing . . . . . . . . . . . . . . . . . . . . . . . 134
6.3 Software System . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 135
6.4 Application . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 137
6.4.1 Data Description . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 137
6.4.2 Viewing a Tour of the Data . . . . . . . . . . . . . . . . . . . . . . . . 137
6.4.3 Scatterplot Matrix . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 138
6.5 Current and Future Developments . . . . . . . . . . . . . . . . . . . . . . . 140
6.5.1 Improving the Methods . . . . . . . . . . . . . . . . . . . . . . . . . . . 140
6.5.2 Software . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 141
6.5.3 How Might These Tools Be Used? . . . . . . . . . . . . . . . . . . 141

xii

Contents

7 Multivariate Continuous Data — Parallel Coordinates . . . .143
7.1 Introduction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 143
7.2 Interpolations and Inner Products . . . . . . . . . . . . . . . . . . . . . . . 144
7.3 Generalized Parallel Coordinate Geometry . . . . . . . . . . . . . . . . 145
7.4 A New Family of Smooth Plots . . . . . . . . . . . . . . . . . . . . . . . . . . . 149
7.5 Examples . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 150
7.5.1 Automobile Data . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 150
7.5.2 Hyperspectral Data: Dealing with Massive Datasets . 152
7.6 Detecting Second–Order Structures . . . . . . . . . . . . . . . . . . . . . . 154
7.7 Summary . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 155

8 Networks . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .157
8.1 Introduction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 157
8.2 Layout Algorithms . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 158
8.2.1 Simple Tree Layout . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 159
8.2.2 Force Layout Methods . . . . . . . . . . . . . . . . . . . . . . . . . . . . 161
8.2.3 Individual Node Movement Algorithms . . . . . . . . . . . . 162
8.3 Interactivity . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 162
8.3.1 Speed Considerations . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 164
8.3.2 Interaction and Layout . . . . . . . . . . . . . . . . . . . . . . . . . . . 165
8.4 NicheWorks . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 166
8.5 Example: International Calling Fraud . . . . . . . . . . . . . . . . . . . . 167
8.6 Languages for Description and Layouts . . . . . . . . . . . . . . . . . . . 172
8.6.1 Deﬁning a Graph . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 172
8.6.2 Graph Speciﬁcation via VizML . . . . . . . . . . . . . . . . . . . . . 173
8.7 Summary . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 174

9 Trees . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .177
9.1 Introduction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 177
9.2 Growing Trees for Large Datasets . . . . . . . . . . . . . . . . . . . . . . . . 178
9.2.1 Scalability of the CART Growing Algorithm . . . . . . . . . 179
9.2.2 Scalability of Pruning Methods . . . . . . . . . . . . . . . . . . . . 181
9.2.3 Statistical Tests and Large Datasets . . . . . . . . . . . . . . . 183
9.2.4 Using Trees for Large Datasets in Practice . . . . . . . . . 184
9.3 Visualization of Large Trees . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 187
9.3.1 Hierarchical Plots . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 187
9.3.2 Sectioned Scatterplots . . . . . . . . . . . . . . . . . . . . . . . . . . . . 192
9.3.3 Recursive Plots . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 195
9.4 Forests for Large Datasets . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 198
9.5 Summary . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 202

Contents

xiii

10 Transactions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .203
10.1 Introduction and Background . . . . . . . . . . . . . . . . . . . . . . . . . . . . 203
10.2 Mice and Elephant Plots and Random Sampling . . . . . . . . . . . 205
10.3 Biased Sampling . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 210
10.3.1 Windowed Biased Sampling . . . . . . . . . . . . . . . . . . . . . . . 211
10.3.2 Box–Cox Biased Sampling . . . . . . . . . . . . . . . . . . . . . . . . . 213
10.4 Quantile Window Sampling . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 215
10.5 Commonality of Flow Rates . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 221

11 Graphics of a Large Dataset . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .227
11.1 Introduction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 227
11.2 QuickStart Guide

Data Visualization for Large Datasets . . . . . . . . . . . . . . . . . . . . 228
11.3 Visualizing the InfoVis 2005 Contest Dataset . . . . . . . . . . . . . 229
11.3.1 Preliminaries . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 229
11.3.2 Variables . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 230
11.3.3 First Analyses . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 230
11.3.4 Multivariate Displays . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 235
11.3.5 Grouping and Selection . . . . . . . . . . . . . . . . . . . . . . . . . . . 239
11.3.6 Special Features . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 242
11.3.7 Presenting Results . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 247
11.3.8 Summary . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 249

References . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .251

Authors . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .263

Index . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .267

1

Introduction

Antony Unwin

Permit me to add a word upon the meaning of a million, being a
number so enormous as to be difﬁcult to conceive.

Francis Galton, Hereditary Genius p.11

1.1 Introduction

Large datasets are here to stay. The automatic recording of information,
whether supermarket purchase data, internet trafﬁc, weather data or
other scientiﬁc observations, has meant that there is no limit to the size
of datasets to be analysed. You might ask, if a dataset is so large, why
not just take a big sample? But samples will not pick out outliers, local
structures, or systematic errors in the data. They will not be large enough
for multivariate categorical analyses. And you have to be careful how you
sample or what subset you use. In Yates’s 1966 Fisher Memorial lecture
(Yates; 1966), he remarked that

Instead, an analysis, often involving elaborate theory and requir-
ing much numerical computation, was made on a particular batch
of data, and conclusions were published. Only when similar anal-
yses were performed on other batches of data was it found that se-
rious contradictions existed between the different batches and that
the original conclusions had to be considerably modiﬁed.

Being Yates, he did not shrink from citing an example of a study by

Fisher where this happened.

Of course, it is not always necessary or sensible to analyse all the data
available. A sample of telephone calls would give a good estimate of ex-
pected revenue, whereas records of all telephone calls would be needed
to spot unusual, but rare, patterns (and possible fraud). However, as
datasets grow, so do subsets of datasets. There are increasingly many

2

1 Introduction

applications where methods are needed for coping with larger volumes of
data.

The aim of our book is to look at ways of visualizing large datasets,
whether large in numbers of cases or large in numbers of variables or
large in both. Visualization is valuable for exploring data and for pre-
senting information in data, whether global summaries or local patterns
(to use the terminology of Bolton et al.; 2004). Data analysts, statisticians,
computer scientists — indeed anyone who has to explore a large dataset
of their own — should beneﬁt from reading this book.

Why is visualizing data important? Data visualization is good for data
cleaning, for exploring data — as John Tukey put it (Tukey and Tukey;
1985): “There is nothing better than a picture for making you think
of questions you had forgotten to ask (even mentally)” — for identify-
ing trends and clusters, for spotting local patterns, for evaluating mod-
elling output and for presenting results. Visualization is essential for Ex-
ploratory Data Analysis.

Visualization is an important complement to statistical approaches
and is essential for data exploration and understanding, and as Ripley
(2005) says: “Finding ways to visualize datasets can be as important as
ways to analyse them.” There are plenty of graphical displays that work
well for small datasets and that can be found in the commonly available
software packages, but they do not automatically scale up. Dotplots, scat-
terplots, and parallel coordinate plots all suffer from overplotting with
large datasets; just think of drawing a scatterplot of a million points.
The number “a million” is a useful symbolic target, because visualizing
a million cases already raises interesting problems and because, despite
what the Galton quotation introducing the chapter says, a million cases
is a comprehensible size. The UK Breast Cancer study followed a mil-
lion women, there are about one million pitches thrown every ﬁve years
of major league baseball, and the television quiz show, popular in many
different countries, asks “Who wants to be a millionaire?” (even though
exchange rate differences mean that a million is not worth the same in
every country).

Graphics have played an important role in the presentation of statisti-
cal data for at least two hundred years, if Playfair (2005) is taken as the
starting point. Sometimes they have been used more, sometimes less, and
often statisticians have taken them very seriously. In 1973, Yates wrote
in his preface to the reissue of Fisher’s Statistical Methods for Research
Workers (Fisher; 1991), referring to the ﬁrst edition of 1925: “Following
the introductory chapter comes a chapter on diagrams. This must have
been an innovation surprising to statisticians of that time.” Talking about
diagrams at all still seems to surprise some statisticians.

After a period in which graphics tended to be downplayed because
early computers could not produce good graphics, they have become in-
creasingly popular in recent years. Presentation of results is one use of

1.1 Introduction

3

graphics but they are also valuable for exploring and analysing data.
It is difﬁcult to tell if this use has also increased, but it would be very
surprising if it had not, thanks to the ready availability of easy to use
software. Generally speaking, software for working with data is excellent
for looking at small datasets. Although this is what people mostly need,
it is not always enough. Firms now usually have their own data ware-
house with substantial data holdings. Scientiﬁc studies can include exten-
sive amounts of automatically recorded data. There are even many large
datasets that have been made public on the web (e.g., TAO, the Tropical
Atmosphere Ocean Project, or GESIS, German Social Survey Data). All
of this puts heavier demands on software, and both analytic and visual-
ization methods need to be revised and improved to deal with these new
challenges.

You could argue that the challenges of dealing with large datasets are
not new at all. More than a century ago, Francis Galton (1892) thought
about what a million might look like. He describes in his 1869 book,
Hereditary Genius: An Inquiry into its Laws and Consequences, count-
ing leaves in a long avenue to give him a sense of how much a million
must be (p.11):

Accordingly, I ﬁxed upon a tree of average bulk and ﬂower, and
drew imaginary lines — ﬁrst halving the tree, then quartering, and
so on, until I arrived at a subdivision that was not too large to al-
low of my counting the spikes of ﬂowers it included. I did this with
three different trees, and arrived at pretty much the same result:
as well as I recollect, the three estimates were as nine, ten, and
eleven. Then I counted the trees in the avenue, and, multiplying
all together, I found the spikes to be just about 100,000 in number.
Ever since then, whenever a million is mentioned, I recall the long
perspective of the avenue of Bushey Park, with its stately chest-
nuts clothed from top to bottom with spikes of ﬂowers, bright in the
sunshine, and I imagine a similarly continuous ﬂoral band, of ten
miles in length.

That is all very well for visualizing the idea of how much the number a
million might be but does not help to visualize the characteristics of a
population of a million. Being Galton, he had considered that too and in
the same book (p. 28) he included a diagram showing how he imagined
the distribution of the heights of a million men would look (Figure 1.1).

Galton suggested that each man would stand with his back to the wall
and a mark would be made registering his height. In effect, this gives
a jittered dotplot, except that there are so many dots in the centre of
the distribution that there is just a solid black blob. (Incidentally, with
Galton’s explanation few people would have problems understanding the
diagram. Would that all graphics were explained so convincingly.)

4

1 Introduction

How would a million be visualized
today? If you have ever drawn a
histogram or a scatterplot of a mil-
lion cases, you know that it is pos-
sible, but that there are problems.
The screen resolution of a computer
cannot be high enough to show very
small bars in the histogram, and
in regions of high density the scat-
terplots look like black blobs with
huge numbers of points piled on top
of one another. (It is noteworthy —
and useful — that the weaknesses
of the two kinds of plot arise at op-
posite extremes of the distributional
densities.) So what should be visual-
ized? If the distributional form of the
bulk of the data is of interest, then
the histogram will be ﬁne for one-
dimensional views (and it may give
some information about outliers too).
If individual outliers are of interest,
Fig. 1.1. Galton’s diagram visualizing
then the scatterplot will be pretty
a million in 1869.
good (and it will give a fair bit of dis-
tributional information as well). One aim might be described as global,
attempting to summarise the main structure, and the other as local, at-
tempting to identify individual features. Ideally, both kinds of plot are
needed to satisfy both aims.

1.2 Data Visualization

Many different words can be used to describe graphic representations of
data, but the overall aim is always to visualize the information in the
data and so the term Data Visualization is the best universal term. Other
terms have different connotations. At a seminar in Munich in 2004 where
researchers from all ﬁelds interested in visualization met, one person
thought the word ‘plot’ was being used to describe the story in a statistical
graphic, not the graphic itself. Would that every plot had a good plot!

Deciding on which graphics to use is often a matter of taste. What
one person thinks are good graphics for illustrating information may not
appeal to someone else. It may also happen that different people inter-
pret the same graphic in quite different ways. There are no absolutes like
the 5% signiﬁcance level for statistical tests (and whatever reservations
there may be about relying on such artiﬁcial limits, they are a help in

1.2 Data Visualization

5

setting widely accepted standards). Buja et al. (1988) and others (e.g.
Gelman; 2004) have suggested comparing a graphic by eye with sets of
similar graphics generated from an appropriate model. This is too much
effort to be applied in every case but can be useful in certain applica-
tions. Like most graphical methods, it relies primarily on the interocu-
lar trauma test (if it hits you between the eyes, it’s signiﬁcant). Results
inferred from graphics should always be treated with caution. They are
reassuring if they conﬁrm something already found analytically, but they
should otherwise be regarded as speculative until conﬁrmed by other, ide-
ally statistical, means.

Fig. 1.2. An early graphic of a big dataset: the US Population in 1890 from the
ofﬁcial census report.

6

1 Introduction

Graphical displays have always been important in statistics, although
they are used more by some statisticians than by others. Mostly they have
been used to display data distributions, sometimes of raw data, some-
times of model residuals. A fascinating early example for a large dataset
can be found in the ofﬁcial report on the 11th US census, which has
been published on the web (http://www.census.gov/prod/www/abs/
decennial/1890.htm). It includes a horizontal barchart of the 1890
population of 63 million by State and Territory, Figure 1.2. It is fascinat-
ing to observe that California (the most populous state today) was only
of middling size with a population of just over a million. As computer
power has increased and computer software has become more sophisti-
cated, more complex graphical tools have been developed and now not
only data are displayed but also structures such as networks, graphical
models, or trees.

It is appropriate to talk of visualization and not just of graphics. How-
ever, this does not mean the ﬁeld of Scientiﬁc Visualization, where su-
perbly realistic 3-D graphics are presented, nor does it mean Information
Visualization, which is concerned with the visualization of information
of all kinds (see Card et al.; 1999; Fayyad et al.; 1999; Spence; 2000,
and the annual InfoVis meetings, http://www.infovis.org, for more
details as well as for many intriguing and effective displays). Data Visu-
alization is related to Information Visualization, but there are important
differences. Data Visualization is for exploration, for uncovering informa-
tion, as well as for presenting information. It is certainly a goal of Data
Visualization to present any information in the data, but another goal
is to display the raw data themselves, revealing the inherent variability
and uncertainty. A provocative example of an unusual data visualization
can be found in WordCount (http://www.wordcount.org) by Jonathan
Harris (www.number27.org), 2004, Figure 1.3. The 86,800 different words
that appear at least twice in the British National Corpus (a collection of
texts comprising 100 million words in all) are displayed in order of fre-
quency. The word ‘visualization’ was sought and then centered between
the words one rank more frequent and one rank less frequent. The com-
bination of the detail above and the overview below is very effective.

Fig. 1.3. Where the word visualization comes in frequency of use amongst the texts
of the British National Corpus.

1.3 Research Literature

7

1.3 Research Literature

Research literature on Data Visualization can be found in both statis-
tics and computer science. Statisticians are interested in data description
and displays arising out of modelling data structure, reﬂecting statistical
properties. Computer scientists’ work is closely tied to information visu-
alization. Unfortunately, as a search of the web reveals, the term Data
Visualization means different things to different people. There is a book
The Art of Data Visualization (Post et al.; 2002), which is about computer
graphics (rendering issues and scientiﬁc visualization) rather than sta-
tistical graphics. The company Interactive Data Visualization produces
computer games. Many software packages are available, which are capa-
ble of producing extraordinary, though not necessarily informative, dis-
plays of data.

There are several classic books on statistical graphics and each takes
a different view of the topic. Tufte (1983) is full of good advice and
strong opinions, pointing out the misleading effects of elaboration of
statistical graphics. Cleveland (1994) concentrates on the sensible de-
sign of basic plots. Both these books have many interesting examples.
Bertin (1983) attempts to provide a (French) philosophical approach, of-
fering plenty to think about, though the practical implications are not
always clear. Wilkinson (2005) describes a ﬂexible system for imple-
menting software for drawing statistical graphics. None of these books
discusses the difﬁculty of visualizing large datasets, and when advice is
given (e.g., in Cleveland, sunﬂower plots for scatterplots with overlap-
ping points), it is of little practical help. All four authors have contributed
much to our overall grasp of statistical graphics and all give good guid-
ance for datasets that are not very large. Friendly has collected a num-
ber of excellent statistical graphics (and some awful ones to show just
how bad they can get) on his web-based Gallery of Data Visualization
(http://www.math.yorku.ca/SCS/Gallery/). Murrell’s book (Mur-
rell; 2005) describes how to draw all kinds of static graphics using the
software R, but does not make any recommendations as to which are good
or bad, nor does he discuss interpretation of graphics.

Practical statisticians have often emphasised the importance of graph-
ical displays, but until PCs and laser printers became available in the
1980s, it was not easy to produce good graphics with a computer. It is
fascinating to read how attitudes to graphics changed as statistical com-
puting developed. While on the computational side many algorithms be-
came practical for the ﬁrst time as computers (electronic as distinct from
human) took over the burden of calculation, it was difﬁcult to produce
graphics and the quality of reproduction was poor (cf. Figure 1.5).

There is a thought-provoking paragraph in Yates’s Fisher Memorial

lecture of 1966 on graphics:

8

1 Introduction

Graph plotters are another development which is of great impor-
tance to the statistician. Computers can now readily produce di-
agrammatic representations of numerical material, though few of
these devices are yet available in this country. They may well rev-
olutionise the presentation of much statistical material, but their
proper utilisation will require much hard thinking by statisticians.

Given the graphics displays that are to be found in much of the media
nowadays, it is clear that there is still a lot of hard thinking to be done!

Chambers (1967) (the future designer of S) gave a paper at the ﬁrst
RSS meeting on statistical computing and posed the question “What do
we need to provide in order to take full advantage of the new computers?
More and better graphical techniques, surely, since these provide a more
condensed summary of information on the spot.” He also remarked in con-
nection with the availability of “new input-output media (e.g., graphical
displays units)” that: “There is great potential power here for data anal-
ysis but statisticians are not yet ready to exploit it.” Some of us might
argue that this situation has not changed a great deal in almost 40 years.
Wegman and Carr (1993) prepared a summarising review on graph-
ics for the Handbook of Statistics. With regard to large datasets, they
emphasised the limits of human perceptual ability and considered the
restrictions this placed on statistical displays.

Huber wrote a review of the 1995 meeting on Massive Datasets (Hu-
ber; 1999) including the following comments on visualization. In his opin-
ion (p. 637) visualization “runs into problems just above medium sets.”
This is reasonable, though pessimistic, as a medium-sized dataset would
have only about 10,000 cases and 10 variables (cf. Table 1.1 later on in
the chapter). Perhaps he was thinking of visualizing all individual cases,
because later on in the same article (p. 646) he wrote “direct visualiza-
tion of larger than medium datasets in their entirety is an unsolved (and
possibly unsolvable) problem.”

The most important comment in his paper concerning visualization is
that “visualization for large data is an oxymoron — the art is to reduce
size before one visualizes. The contradiction (and challenge) is that we
may need to visualize ﬁrst in order to ﬁnd out how to reduce size.” It is an
art, because standard summarising displays like histograms or barcharts
may not be appropriate or sufﬁcient for the data in hand. In that case,
micro-level or local visualization of cases may be necessary to suggest
what kind of macro-level or global visualization might work.

There are not yet many papers on graphics for large datasets. One
exception is Eick and Karr’s (2002) on what the authors call visual scal-
ability. They outline both the limits of human perception and the limits
of the then current equipment. They demonstrate how multi-windowing,
interaction, and good organisation can go a long way to displaying large
datasets effectively. Another is Ward et al. (2004), which emphasises the

1.4 How Large Is a Large Dataset?

9

need for multiresolution strategies, that is, representing the data at dif-
ferent levels of abstraction or detail. Some computer scientists have pub-
lished research on visualization of large datasets and have experimented
with novel ideas. Keim (2000), for instance, considers pixel-oriented ways
of encoding multivariate information for large datasets.

In the United States, the National Visualization and Analytics Cen-
ter (NVAC) has published a book (Thomas and Cook; 2005) on analysing
large datasets for combatting terrorism. They refer (p. 4) to taking ad-
vantage of “the human eye’s broad bandwidth pathway into the mind to
allow users to see, explore, and understand large amounts of information
at once.” They seek new methods using “multiple and large-area computer
displays to assist analysts” (p. 84), a different approach to the one in this
book, which concentrates on improving performance on single screens,
the practical situation most of us face.

1.4 How Large Is a Large Dataset?

What is meant by large, when large datasets are referred to, tends to
change over time and depends on what methods are to be applied to
the data. Computers have more storage and more power, and tasks that
were onerous last year become run-of-the-mill this year. The Lanark-
shire Milk Experiment was a large-scale study from 1930, made famous
amongst statisticians by Student’s devastating criticism (Student; 1931).
Figure 1.4 shows the odd pattern of average growth for the 10,000 school-
girls in the study (there was a similar pattern for the boys). Each child
was measured twice, once in winter and again six months later in sum-
mer. The display shows the averages at each age and links them together
to estimate an average growth curve for girls over time. Such a display
would be easy to produce today, but it must have taken substantial effort
seventy years ago to organise the necessary calculations.

It would be interesting to know what statisticians have thought of as
large over the years, but it turns out to be difﬁcult to pin down. There is
Huber’s (1992) classiﬁcation, where he divided datasets from tiny up to
huge based on storage space required, see Table 1.1. He estimated that
a large dataset might have a million cases with 10 variables. Wegman
(1995) extended the table by a further factor of 102 (“monster” datasets).

Once electronic computers were used more commonly in statistics,
their capabilities started to determine how big the datasets that could
be analysed were. There are several levels of looking at this. Firstly, you
can consider the amount of data that can be stored (which is related to
the Huber scale of dataset sizes and depends on the capacity of the stor-
age media available) and identiﬁed (which depends on the software avail-
able). Secondly, you can think about what analyses can be carried out on

10

1 Introduction

1/2

5

70

1/2

6

1/2

7

1/2

8

1/2

9

1/2

10

1/2

11

1/2

12

Age

x
x
x

•
•

•

x

x
x

•

•
•

x
xx

•
••

xx
x

•
•
•

Diagram 4
W E I G H T O F G I R L S
Average weight at commencement of experiment
Average weight at end of experiment

•
x

x
x

•
•

Control
Raw milk “feeders”
Pasteurised “feeders”

x
x
x

•
•
•

x
x

x

688
332
353

718
335
352

802
414
410

820
408
406

729
373
340

494
261
246

Numbers in each Group

.
s
b
l

–

t
h
g
i
e
W

65

60

55

50

45

40

35

51
16
26

C
R
P

Fig. 1.4. A reproduction of one of Student’s displays from the Lanarkshire Milk
Study. Notice the apparent irregularity of weight increase with age, which drew
attention to some of the problems in the design of the study and in how it was
carried out.

the data. The requirements for some methods obviously grow too fast with
numbers of cases (e.g., hierarchical clustering) and some software needs
all the data in main memory, which automatically makes that a limit-
ing factor. Thirdly, you can demand that analyses be carried out within
an “acceptable” time. For instance, interactive analyses need very fast
response times, much faster than anything dreamed about in the days
when users expected to wait a few hours for their output to turn up.

A search of the major statistical journals using JSTOR threw up a
number of comments in published papers on the size of datasets, but most

Table 1.1. Huber’s Classiﬁcation of Dataset Sizes

Size

Tiny

Description

Can be written on a blackboard

Small

Fits on a few pages

Medium Fills a ﬂoppy disk

Large

Huge

Fills a tape

Needs many tapes

Bytes
102
104
106
108
1010

1.4 How Large Is a Large Dataset?

11

were not quantiﬁed. They are listed in Table 1.2 for illustration and some
are discussed in more detail in chronological order.

Table 1.2: Quotations on Dataset Size

Year Comment

1959 The phrase “If large-scale storage is not
available” implies that a data set of 1,000
cases would have been large.

1965 “the analysis of the data recorded by Tel-
Star, an early communications satellite, in-
volved tens of thousands of observations
and challenged contemporary computing
technology.”

Author

Harris

Chambers

1966 “The need for better editing is well known
to those concerned with extensive data
sets.”

Yates

1967 Datasets of “modest bulk”.

1967 “Vast” datasets.

1975 “It is now possible to access large data sets

directly from magnetic tape.”

1978 For SPSS “any one analytical use of the ﬁle
is limited to using at most 500 variables”,
though up to 5,000 could be loaded in all.

1981 “There is now a collection of computer sub-
routines designed to summarize large data
sets in histogram form.” In the example he
used, statistics were calculated for 20,000
samples of size 50 and histograms with 800
(!) cells were prepared for each statistic.

1981 Restricted in their analysis at one site be-
cause the software there could only handle
88,000 real numbers.

1981 “Substantial” data sets in the census

1982 Moderate data sets have less than 500
cases and large have more than 2,000 (for
linear-logistic models).

Page

Gower

McNeill &
Tukey

Muller

Dickey

Aitken et al.

Kruskal

Koch

1986 “... allows even very large data sets to be
explored interactively” and referred to a re-
gression data set with 11,000 cases.

Gilks

continued on next page

12

1 Introduction

Table 1.2: continued

Year Comment

1986 “The increased use of computing has in
turn increased the importance of develop-
ing methods for interpretation of large vol-
umes of data. . . ”

1987 “What is large depends on the frame of ref-
erence. If available plotting space for a scat-
terplot is a one-inch square, 500 points can
seem large. For our purposes, N is large if
plotting or computation times are long, or if
plots can have an extensive amount of over-
plotting.” At that time, 50,000 points was
large (based on rendering time) but the au-
thors pointed out: “The representation of 1
million or more data points in each plot is
feasible.”

Author

Eddy

Carr et al.

1987 “a moderate amount of data, say several

Becker et al.

hundred observations.”

1990 “A regression model for 5,000 cases with 6
variables would be a high sample size for
immediate evaluation (c. 3 seconds), but far
too big for even rough bootstrapping (esti-
mated to take an hour).”

1990 “Computing plain medians was not feasible
because there were nRC = 2,621,400,000
data values in all, which could not be stored
in central memory.”

1991 “2% of the total census records is a very
large data ﬁle”. For a UK population of 65
million this would be about a million cases.

1993 “The data are listed in Good and Gask-
ins (1980) as a histogram of 172 bins of
length 10 MeV constructed from the loca-
tions of 25,752 events on a mass-spectrum.
For such a huge data set in one dimen-
sion...”

1996 “huge samples (size 100,000)” and “a large

number of groups (100 say)”

Sawitzki

Rousseeuw

Marsh et al.

Gu

Sasieni &
Royston

continued on next page

1.4 How Large Is a Large Dataset?

13

Table 1.2: continued

Year Comment

1996 “large surveys such as the NCVS may have
60,000 or more observations, and only re-
cently has research begun on how to plot
massive data sets.”

1998 A “large” data set has 3667 cases. (Scatter-

plots for surveys)

1999 “We focus our attention on a very small
[sic] part of the information available in
these data; namely the birth weight of the
4,017,264 registered singleton births.”

Author

Fesco et al.

Korn &
Graubard

Clemons &
Pagano

In 1959, Harris described data plotting with an IBM 650. “With a
fairly small table a 650 might handle up to 1,000 non-negative obser-
vations of not over 5 digits each.” The accompanying phrase “If large-
scale storage is not available” implies that such a dataset of 1,000 cases
would have been large. For its time, the display in Figure 1.5 must have
been impressive. Of course, there is “large” and “large” and according to

Fig. 1.5. Reproduction of Figure 1 of Harris’s (1959) paper. Reprinted with per-
mission from The American Statistician. Copyright 1959 by the American Statis-
tical Association. All rights reserved.

14

1 Introduction

Chambers (1999), “Large-scale applications did exist, even at this time [in
1965]; the analysis of the data recorded by TelStar, an early communica-
tions satellite, involved tens of thousands of observations and challenged
contemporary computing technology.”

In his 1966 Fisher memorial lecture Yates wrote:

As an example of the type of work that can now be readily under-
taken I may instance the analysis of the directional recording of
swell from distant storms involving complicated spectral analyses
of 106 automatic recordings from three pressure gauges.

He also noted that “A serious fault of many statistical investigations in
the past has been that all available data bearing on the question at is-
sue were not made use of ” — a clear cry for more powerful computing
facilities to enable the analysis of larger datasets.

In 1980, Good and Gaskin published an article on what they called
‘bump-hunting’ and included a plot of the distribution of a dataset with
just over 25,000 cases (Figure 1.6). For the 1980s, Carr et al. (1987) may
sound surprisingly ambitious: “The representation of 1 million or more
data points in each plot is feasible.” In fact, the only surprise is that so
few people have followed up on this work. Figure 1.7 shows only a quar-
ter of a million points, but it is clear that a plot could readily have been
drawn for a million. In 1995, the US National Research Council organised
a workshop on “Massive Data Sets”. Several of the papers were revised
and reviewed a few years later and published in an issue of JCGS (Vol.
8, no. 3). There was some reference to numbers, but, according to Ket-
tenring, the main organiser, in a later paper presented at the Interface
meeting in 2001: “It seemed appropriate to stick with a murky deﬁnition

Fig. 1.6. Reproduction of Figure A of Good and Gaskins’s (1980) paper. Reprinted
with permission from The Journal of the American Statistical Association. Copy-
right 1980 by the American Statistical Association. All rights reserved.

1.4 How Large Is a Large Dataset?

15

Fig. 1.7. Reproduction of Figure 10 of Carr et al.’s (1987) paper plotting 243,800
points from a glass-melter simulation. Reprinted with permission from The Jour-
nal of the American Statistical Association. Copyright 1987 by the American Sta-
tistical Association. All rights reserved.

[of massive].” (Kettenring; 2001) He offered one version of a murky def-
inition as: “A massive data set is one for which the size, heterogeneity,
and general complexity cause serious pain for the analyst(s).” A realistic,
if unattractive, description.

In their paper, Eddy et al. (1999) worked with brain image data,
analysing 2800 slices of 128 × 128 voxels each, making up about 256MB
of raw data. Kahn and Braverman (1999) described climate data being
collected at the rate of 80 gigabytes per day (though they did not claim to
analyse datasets of this size). In a later JCGS paper, Braverman (2002)
discussed the analysis of a subset of 5 million cases for 2 variables, i.e.,
large according to Huber’s table. McIntosh (1999) studied telephone net-
works and was able to store 2 to 4 million messages on 128MB. Four years
later, when he revised his paper for publication in JCGS, his storage limit
had jumped to 55 gigabytes!

It is gratifying to be able to show a plot for a genuinely large dataset
(at least in comparison to most of the datasets used so far). Figure 1.8
displays the distribution of reported birthweights for more than 4 million
children. The curious form is due to rounding. (Perhaps there are more
urgent matters to attend to just after a birth than to record the precise
weight of the baby?) Hand et al. (2000) in their paper on Data Mining
give examples of datasets that are potentially much larger than anything
discussed here (Barclaycard’s 350 million credit card transactions a year,

16

1 Introduction

Fig. 1.8. Reproduction of Figure 2 of Clemons and Pagano’s
(1999) paper.
Reprinted with permission from The American Statistician. Copyright 1999 by
the American Statistical Association. All rights reserved.

Wal-Mart’s 7 billion transactions a year in the early 1990s, AT&T’s 70
billion long distance calls annually, reported in 1997). But have these
ever been analysed in full? The examples in the paper are certainly not
for small datasets (e.g., Figure 1.9), but they are not as big as that. Wilks

Fig. 1.9. Reproduction of Figure 2 of Hand et al.’s (2000) paper. (Permission to
reprint was granted by the Institute of Mathematical Statistics)

talked at the 2004 Interface meeting in Baltimore about how AT&T stores

1.5 The Effects of Largeness

17

details of all telephone calls on its system currently. At the moment, it is
still quite difﬁcult, but clearly it will become progressively easier. An-
other generator of large datasets is, of course, the internet. Marchette
and Wegman (2004) report that their university network was seeing rates
as high as 8 million packets per hour in 2002. As an example for large
numbers of variables, consider the remark of Kettaneh et al. (2005) con-
cerning chemometrics that “In 1970 the number of variables K (matrix
columns) was large when exceeding 20. Today K is large when exceeding,
say, 100,000 or 1,000,000.”

For (almost) the last quotation, it is interesting to look at an article
earlier than any cited above, a discussion of the analysis of the 1890 cen-
sus in the US by Porter (1891). The 1890 census was the ﬁrst one to count
with Hollerith machines. Porter wrote “After this the 63,000,000 cards
with their thousand million statements must each pass through the tab-
ulating machine ﬁve times.” Few of the other quotations come anywhere
near such numbers! (We are indebted to G ¨unther Sawitzki for suggest-
ing looking at analyses of census data for evidence of working with large
datasets.) See also Figure 1.2.

So we have had large, extensive, modest bulk, vast, substantial, huge,
and massive in referring to dataset size, but rarely, probably wisely, any
statements about what the terms might mean. Despite their desire for
precise data to analyse, statisticians can be just as vague as the next
person when it suits them. A plot of the log of dataset size against date
for the quotations listed in this chapter is shown in Figure 1.10. To ﬁnish
off this set of quotations, here is a ﬁnal one and you might like to guess
from what period it came before checking the reference:

Large data objects will usually be read as values from external ﬁles
rather than entered during a session at the keyboard.

Now just how large might that be? (It is actually from the 3rd edition,
1999, of the esteemed Modern Applied Statistics with S-Plus by Venables
and Ripley. In the 4th edition, the beginning of the sentence has been
changed to “For all but the smallest data sets. . . ”.)

For the purposes of this book we have taken one million as a guideline,
though that still leaves a lot of ﬂexibility. It could be one million bytes
(medium in Huber’s classiﬁcation), one million cases, one million vari-
ables, one million combinations, or one million tests. It should be some-
thing “large” at any rate.

1.5 The Effects of Largeness

Largeness comes in different forms and has many different effects. Whereas
some tasks remain easy, others become obstinately difﬁcult. Largeness
is not just an increase in dataset size. Fisher’s remark in his preface

18

1 Introduction

to the ﬁrst edition of Statistical Methods for Research Workers in 1925
that “The elaborate mechanism built on the theory of inﬁnitely large
samples is not accurate enough for simple laboratory data” might today
be re-expressed as “The elaborate mechanisms of classical statistics for
analysing small samples of simple laboratory data are not enough for
large, complex datasets.”

Areas affected by largeness include storage, data quality, dataset com-

plexity, speed, analyses, and, of course, visualization.

Large will usually mean large rather than LARGE in this

book. It will be assumed that the whole dataset resides on the local hard
disk. Problems of retrieving data from distant databases in real-time do
not occur in this case. This is a restrictive assumption but may be justiﬁed
on two grounds: many large datasets are small enough to be handled
locally (storing a million cases on a laptop is no big deal) and methods of
visualizing datasets of this size are still not fully developed.

1.5.1 Storage

The most obvious effect on increasing dataset size is the storage space
needed. Although storage was a major limitation in the past (cf. McNeill
and Tukey; 1975), it is far less so now. AT&T may have organisational
problems in storing the information on all the calls that go through its
networks (cf. Wilks’s talk at the Interface meeting 2004), but AT&T can
do it. For the rest of us, it is a case of being able to put on our laptops
datasets of a size that only specialist installations could handle a few
years ago.

Storing data is one side of the coin and retrieving data is the other.
Modern database systems give intelligent access to large amounts of data,

Log10 dataset size

"Large"

Handled

Handled interactively

6

5

4

3

1960

1970

1980

1990

Year

Fig. 1.10. A scatterplot of the dataset sizes reported in the quoted papers.

1.5 The Effects of Largeness

19

but how can the data be inspected and reviewed? Summaries and dis-
plays are all very well, but often it is valuable to look at the raw data.
Standard statistics software packages offer spreadsheet-like data tables
to view datasets. Whether the data can be stored locally or not, scrolling
through tables is not effective. Perhaps this is the reason why Excel lim-
its itself to a rather miserly 65,536 rows (although why only at most 256
columns are permitted remains a mystery). Tables are ﬁne for viewing
sections of a dataset, but simple scrolling is no longer a practical naviga-
tional option.

Whereas the question of storing the actual data is one problem, an-
other difﬁculty can arise when converting data between different appli-
cations with different (ﬁle) formats. Most analysis or visualization tools
have their own native storage format or rely on the generality of ﬂat
ASCII ﬁles. Efﬁcient import functions are crucial, as converting data can
turn out to be a major bottleneck.

1.5.2 Quality

The larger the dataset the more errors there are. Probably there is a
higher proportion of errors too. As Yates (1966) put it: “The need for better
editing is well known to those concerned with extensive datasets.” What
he meant by “extensive” in 1966 is not recorded, but as an example he
gives a dataset Healy reported on in 1952 with around 4,000 cases of 30
variables each. Ripley (2005) wrote in relation to car insurance proposals
that the more questions potential customers are asked the less reliable
their answers will become. Huber (1994) referred to “the rawness of raw
data” and wrote: “We have found that some of the hardest errors to de-
tect by traditional methods are unsuspected gaps in the data collection
(we usually discovered them serendipitously in the course of graphical
checking [our italics]).”

In addition, the larger the dataset the more coding problems there are
(varieties of missings, and coding variations in general, as the dataset
will often have been compiled from different sources). Data cleaning be-
comes a major issue — or rather it should become a major issue. Although
many organisations go to considerable effort to ensure the quality of their
data, many large datasets are still presented in a lamentable condition,
as if the effort and expense of collecting them justiﬁes neglecting any
kind of serious preparatory cleaning. Of course, data analysts have often
been given unchecked datasets to analyse, but with small datasets it is
a simple job to ﬁx the blatant errors and further errors can be checked
and discussed with the dataset owner. This may sometimes lead to a gain
of background information that might otherwise not have occurred. That
kind of interaction with a domain expert is much more difﬁcult to achieve
when the dataset is large and the results of many individuals’ efforts. No

20

1 Introduction

one person may have a complete overview and you cannot expect to dis-
cuss large numbers of individual cases. What all practising data analysts
agree on is that the proportion of project time spent on data cleaning is
huge. Estimates of 75–90% have been suggested.

Matters do improve with time in some respects. The famous curiosity
of the Indians and the teenage widows from the 1950 US census (Coale
and Stephan; 1962) would probably have been identiﬁed and corrected
much more quickly with modern interactive tools.

1.5.3 Complexity

Largeness may mean more complexity — more variables, more detail
(additional categories, special cases), and more structure (temporal or
spatial components, combinations of relational data tables). Again this
is not so much of a problem with small datasets, where the complexity
will be by deﬁnition limited, but becomes a major problem with large
datasets. They will often have special features that do not ﬁt the standard
case by variable matrix structure well-known to statisticians. Datasets
of results from the PISA study comparing schoolchildren’s educational
achievements form an interesting example. The sample design used is
weight-adjusted at many different levels to ensure scientiﬁc comparabil-
ity but at the expense of transparency and understanding (Adams and
Wu; 2002).

1.5.4 Speed

Largeness affects speed. It takes longer to read and retrieve data (though
locally stored datasets should not have this problem), and it takes longer
for some calculations to be evaluated. Formerly, the rendering of displays
would also take noticeably longer, though this seems barely an issue
nowadays. But it is not just the computer’s speed that is affected, so is
the user’s. There are likely to be more variables to consider, more dis-
plays to manage, and more results to analyse. More thought is needed
between the steps of an analysis, and more time is needed even just to
locate objects. Locating one variable out of three or ﬁnding two cases out
of seventy is easy. When there are two hundred variables and one million
cases, both of these tasks require highly organized data, and software
support to match, to be carried out at all.

Speed is relative. The US Census of 1890 was concerned about the
analysis taking longer than 10 years (the 1880 results were ﬁrst ready
in 1888). Nowadays, interest lies in results fast enough to be considered
interactive.

1.5 The Effects of Largeness

21

1.5.5 Analyses

Largeness implies more analyses and more results. Managing the pro-
cess of analysis successfully becomes a central task in its own right. The
days of typing “Statistics all” and picking up a few pages of computer
output are long gone. Even in 1967, serious analysts, (Page et al.; 1967),
were getting bogged down in paper: Healy p. 136, “One ﬁnal thing I would
press for [. . . ] is more use of graphical output, notably destructible graph-
ical output which does not leave heaps of paper lying around when a job
is ﬁnished.” The days of trawling through endless volumes of frequency
tables for every variable and of contingency tables for every pair of vari-
ables are still sadly with us. Automatic ﬁltering and storing of results are
essential ﬁrst steps to help analysts to concentrate on the important is-
sues that require human input to interpret the results. This kind of work
is currently more likely to be carried out under the name Data Mining
than under the name Statistics.

Data Mining is mainly concerned with the analysis of large datasets
(Hand et al.; 2000, mention several extremely large datasets), although
some Data Mining papers only describe working with relatively small
ones. For instance, the 2003 review of Data Mining software packages
(Haughton et al.; 2003) used two datasets, one with 1,580 cases and
one with just under 20,000 (though it did have 200 variables). Generally
speaking, there is less concern in Data Mining for statistical concepts and
more attention paid to computational efﬁciency and heuristic approaches.
In this way, Data Mining and Statistics complement each other well.

1.5.6 Displays

Largeness affects screen real estate. The more cases and the more points
or bars there are to be displayed, the larger a window tends to have to be
(cf. Carr et al.; 1987). Visibility is obviously an issue for numbers of cases,
but numbers of variables and numbers of displays are a bigger problem.
The larger the dataset, the more displays are likely to be required, both
for the larger number of variables and for the larger number of subsets
that may need to be examined. More and bigger plots mean that win-
dow design and window management become increasingly important. In
the DDB Needham dataset discussed in Putnam’s (2000) Bowling Alone
book, there are more than 20 variables relating to the number and age
of children in the household. Displaying barcharts of all these variables
simultaneously on a screen of 1024 × 768 pixels would allow a maximum
of about 200 × 180 pixels per plot. Positioning the displays in informa-
tive ways, for instance, placing all the variables on ages of the children
in a line in order, would require additional capabilities. Repositioning, re-
ordering, and resizing graphics is difﬁcult, messy work, so it is only done
if it absolutely has to be. Like many other operations, there is a lot you

22

1 Introduction

might want to do with advantage, if you only had the tools to do it. These
are tasks the computer can do much better than a human — provided
that you can tell it what you want.

1.5.7 Graphical Formats

Dealing with large datasets is also a challenge for the purely technical
process of plotting the data on the screen and saving the resulting graph-
ics to a ﬁle. A scatterplot of Fisher’s Iris Data can be plotted by whatever
graphics engine you like and saved into any ﬁle format. This is no longer
true when datasets become really big. Plotting hundreds of thousands
of points on the screen is slow, unless the system can take advantage of
the native routines of the graphics board of the computer, today usually
some kind of OpenGL. This is especially true when using smoothing and
sub-pixel-rendering of the plotted objects.

Similar problems arise when saving a graphic to a ﬁle. Object oriented
formats like PS or PDF would be the preferred option, but saving tens of
thousands of polygons of a parallel coordinate plot to a pdf-ﬁle makes this
ﬁle too big for most of the tools available. At this point, bitmap graphics
formats like PNG or JPEG are a more efﬁcient choice, though they offer
poorer reproduction quality. Much care must then be taken to achieve a
high rendering quality on the screen.

For reasons of size, a few of the graphics reproduced in this book are

“only” bitmap graphics.

1.6 What Is in This Book

This chapter has set the scene for what our book is about. The next chap-
ter deﬁnes and discusses standard statistical graphics. Standard means
the plots that are used most frequently in data visualization and that
cover the basic data display requirements: barcharts, histograms, scat-
terplots, and so on. It is helpful to set down what is meant in this book
by these terms, as not everyone agrees on the deﬁnitions of the basic
plots. There is a particularly varied set of deﬁnitions in use for boxplots
— sometimes more than one can be found in the same software package!
Many plots can be used in data visualization: piecharts, rose diagrams,
starplots, stacked barcharts, to name only a few, but the ideas described
in this book can be applied to all of them just as to the standard displays.
Chapter 3 looks at the issue of upscaling graphics to cope with large
datasets. In general, area plots can be upscaled with minor amendments,
whereas point plots require more substantial changes.

One of the ways of extending what can be achieved with statistical
graphics is to add interaction. In the fourth chapter, several develop-
ments of interactive methods are explained, which improve the capability
of graphics for ﬁnding information in large datasets.

1.7 Software

23

After these three chapters on general principles follow chapters on
particular types of graphics for applications. These chapters have been
written by experts in their ﬁeld. Some have given a complete overview; a
couple have chosen to concentrate on special issues.

Chapter 5 discusses specialist plots for multivariate categorical data
— mosaic plots and their variations. For mosaic plots, features like sort-
ing and redmarking are most valuable. Chapters 6 and 7 consider multi-
variate continuous data, ﬁrstly experimenting using pre-calcuated videos
to enable selection and linking in grand tours for very large datasets and
secondly looking at parallel coordinate plots for continuous data. For par-
allel coordinate plots, sorting is also important, but Chapter 7 concen-
trates on transforming link functions between the axes and using satura-
tion brushing.

The emphasis up till now has been on visualization of cases from large
datasets, but the next two chapters discuss visualization of structures —
networks and trees. Like parallel coordinates, networks are drawn with
many lines, and so an increase in magnitude has a more dramatic effect
on networks than it does on point or area plots. The main issue is not
drawing optimal layouts but drawing informative and acceptable layouts
fast enough to be useful. In particular, this chapter makes clear that hav-
ing to analyse applications with a million nodes is not at all unusual. With
trees, the task is different again. Large datasets do not lead to specially
large trees, but complex datasets may lead to many, many trees, and the
visualization here concentrates on the task of combining and summaris-
ing the information from large numbers of trees. A broad range of innova-
tive displays is introduced for these specialist tasks, though they all have
their origins in existing plots.

There are several applications discussed throughout the book. Chap-
ter 10 looks at a major one that everyone meets in their daily work even if
they are only subliminally aware of it: internet packet data. The problems
of sampling the data to produce representative displays are highlighted
and the aptly named ‘mice and elephants plot’ is shown to have good prop-
erties for uncovering features in the data.

No matter how interesting the papers are that are written by re-
searchers to investigate deep theoretical problems, readers usually ap-
preciate some clear-cut, cogent advice. The ﬁnal short chapter uses an
example to illustrate how a large dataset can be explored with visual-
ization. If you have an immediate data visualization problem for a large
dataset in front of you, the last chapter might give you some ideas.

1.7 Software

At various points in the book, several different software packages are
used or referred to. Some authors give short lists of tools that implement

24

1 Introduction

the concepts they discuss. The packages used to produce the graphics
in the book (in alphabetical order) were Data Desk, GGobi, ExploreN,
KLIMT, Limn, MANET, Mondrian, R, VizML. Current references to these can
be found on the book’s webpage. Many of the graphics could have been
produced by Excel, JMP, SAS-Insight, SPSS, S-Plus, Xlisp-Stat, or indeed by
many other packages.

It is the ideas and concepts that are important and not the current
implementations and so no speciﬁc recommendations are made. Everyone
should use the software that they feel comfortable with and they should
demand some, if not all, of the features expounded in this book. Of course,
experimenting with new tools broadens the horizon and encourages the
generation of new ideas. As always, we should hope that much better
software is just around the corner. Every now and again that turns out to
be true.

1.8 What Is on the Website

Although the book is a stand-alone resource, the accompanying website
will offer additional material and information. The website at http://
www.rosuda.org/GOLD will include:
• pdf-ﬁles and code/settings for ﬁgures;
• up-to-date links to the software mentioned;
•
•

the most important datasets used in the book;
errata.

1.8.1 Files and Code for Figures

Visualizing large datasets almost always involves some non-trivial graph-
ics. If possible, the code and settings used to produce the graphics will be
included on the webpage so that readers can replicate them.

Colour printing helps a lot to cope with the complexity of some graph-
ics, but a good choice of colour schemes is important. Not all the book’s
graphics are optimal in this respect. Readers may like to experiment with
redrawing them themselves using other colour palettes.

Many displays in the book would need far more printing space than
the page size allows. Therefore, all graphics of the book can be down-
loaded from the website as pdf-ﬁles for closer scrutiny (as long as no copy-
right applies).

1.8.2 Links to Software

The book communicates principles, not details of speciﬁc implementa-
tions. Nevertheless, even the best considered principle needs an imple-
mentation in software and evaluation by users. The website will give up-
to-date links to the software used in the book and, for each tool, a list of

the ﬁgures that were directly drawn by that software (though in many
cases other software could have been used just as well).

1.8 What Is on the Website

25

1.8.3 Datasets

The index lists around 20 different datasets used in the book. Some of
them are used only once; others are used throughout the book. Some have
millions of observations; some are smaller. The website will offer links
to all datasets mentioned in the book as far as possible. The following
section brieﬂy describes seven of the datasets.

Small Datasets for Illustration

The ﬁrst part of the book illustrates many principles that can best be
introduced with datasets of small size.

•

Italian Olive Oils
The data consist of 572 samples of Italian olive oils. For each sample,
the contents of the 8 major fatty acids have been determined. The data
are grouped according to a hierarchical classiﬁcation of 3 regions and
9 areas of Italy.

• Athens Decathlon 2004

For the 28 athletes from 22 countries who completed all 10 disciplines
in the 2004 Olympics decathlon in Athens, the individual results of
the disciplines and the resulting point scores have been recorded.

• 2004 Cars Data

Taken from the website of the Journal of Statistical Education at
http://www.amstat.org/publications/jse/jse data archive.
html, this dataset contains information on a number of cars including
horsepower, mileage, weight, and country of origin.

Large Datasets

Large datasets often have a very speciﬁc structure. The following four
examples cover a broad range of applications.

• Bowling Alone

This dataset is one used in Robert Putnam’s book Bowling Alone.
The DDB Life Style Survey, available on the web from http://www.
bowlingalone.com, is an annual survey over 24 years of around
3,500 different individuals each year with up to just under 400 pieces
of information per case. With 85,000 cases this means that, ignoring

26

1 Introduction

missing values, there are about 30 million pieces of information in the
dataset.

• Bank Deals

Over two years there were approximately 700,000 transactions car-
ried out for ﬁrms by a major bank. The record of each deal included
the amount, the book proﬁt, the type of deal, the location, and vari-
ous other pieces of information. Recordkeeping changed between the
two years so that the data are not fully comparable for the two years.
These data are conﬁdential.

• US Current Population Survey – Census Data

The dataset contains data for the 63,756 families that were inter-
viewed in the March 1995 Current Population Survey (CPS). These
include families with husbands and wives, whether military or non-
military; families with male heads only; families with female heads
only; non-family householders and unrelated individuals are included
too — although such individuals do not constitute “families” in the
strict sense of the word. This dataset also includes families in group
quarters. The source of the data is the March 1995 Current Population
Survey, conducted by the US Bureau of the Census for the Bureau of
Labor Statistics. The data can be found at http://www.stat.ucla.
edu/data/.

•

Internet Usage Data
These data come from a survey conducted by the Graphics and Visual-
ization Unit at Georgia Tech October 10 to November 16, 1997. Details
of the survey are available at http://www.cc.gatech.edu/gvu/
user surveys/survey-1997-10/. The particular subset of the sur-
vey used here is the “general demographics” of internet users. The full
survey is available from the website above, along with summaries, ta-
bles, and graphs of their analyses.
These data were used in the American Statistical Association Statis-
tical Graphics and Computing Sections 1999 Data Exposition.

1.9 Contributing Authors

Antony Unwin is Professor of Computer Oriented Statistics and Data
Analysis at the University of Augsburg.

Martin Theus is a senior researcher at the University of Augsburg.

Heike Hofmann is Professor at Iowa State University.

Dianne Cook is Professor at Iowa State University. Her work is joint re-

1.9 Contributing Authors

27

search with Peter Sutherland, Manuel Suarez, Jing Zhang, Hai-Qing You,
and Hu Lan and was supported by funding from National Science Foun-
dation grant #9982341.

Leslie Miller is Professor at Iowa State University.

Rida Moustafa completed this work on a postdoctoral appointment at the
Center for Computational Statistics, George Mason University, USA.
His work was funded by the Air Force Ofﬁce of Scientiﬁc Research under
contract F49620-01-1-0274.

Ed Wegman is Director, Center for Computational Statistics, George Ma-
son University, USA. His work was funded by the Ofﬁce of Naval Re-
search under contract DAAD19-99-1-0314 administered by the Army Re-
search Ofﬁce, by the Air Force Ofﬁce of Scientiﬁc Research under con-
tract F49620-01-1-0274 and contract DAAD19-01-1-0464, the latter also
administered by the Army Research Ofﬁce, and ﬁnally by the Defense Ad-
vanced Research Projects Agency through cooperative agreement 8105-
48267 with the Johns Hopkins University.

Simon Urbanek is in the research department of AT&T, New Jersey.

Graham Wills is Principal Software Engineer at SPSS, Chicago.

B ´arbara Gonz ´alez-Ar´evalo is at the University of Louisiana.

F´elix Hern ´andez-Campos is at the University of North Carolina.

Steve Marron is at the University of North Carolina. His research was
partially supported by Cornell University’s College of Engineering Mary
Upson Fund and by NSF Grants DMS-9971649 and DMS-0308331.

Cheolwoo Park is at the University of Florida.

Part I

Basics

2

Statistical Graphics

Martin Theus

Millions of stars that seemed to speak in ﬁre.

John Maseﬁeld, The Wanderer

2.1 Introduction

Statistics has its own basic suite of domain-speciﬁc visualization tools.
These statistical graphics can best be classiﬁed by the kind of data that
they depict. Statistical data are usually characterized by their scale: nom-
inal, ordinal (which are both categorical) or numerical (which is usually
regarded as continuous). What is most important in distinguishing statis-
tical graphics from other graphics is their universality: statistical graph-
ics are not tailored towards only one speciﬁc application but are valid for
any data measured on the appropriate scales.

Depending on the data scale, certain standard graphing techniques
have prevailed. Data on a discrete scale, which represent counts of differ-
ent groups within a dataset, are best represented by areas whose sizes are
proportional to the counts they represent, whereas data on a continuous
scale are usually depicted by a single glyph (i.e., a graphical object, usu-
ally a point) per observation. Exceptions are plots based on summaries of
the data like histograms and boxplots.

Using this classiﬁcation, the standard statistical graphics are intro-
duced in the following sections along with their most common extensions
and modiﬁcations. Obviously the range of statistical graphics is much
broader than the basic plots that can be introduced in this chapter.

2.2 Plots for Categorical Data

Plots for categorical data have not received much attention in the past.
This can be explained by several factors. One reason was that software
was not able to read non-numeric values as class labels, and once the

32

2 Statistical Graphics

New England

Middle Atlantic

South Atlantic

East South Central

West South Central

East North Central

West North Central

Mountain

Pacific

NEd

MAc

SAc

ESC

WSC

ENC

WNC

Mnn

Pcc

Fig. 2.1. Two barcharts for Division in the Census dataset.

labels had been converted to numbers, it was quite tempting to treat the
data as numerical. Another reason was the difﬁculty of representing mul-
tivariate categorical data.

2.2.1 Barcharts and Spineplots for Univariate Categorical Data

A univariate vector of categorical data can be summarized in a one-
dimensional table. The easiest way to depict this summary is a barchart,
where the area of the bar represents the count for its category. For ease
of comparison, all bars are given equal width, so that their heights rep-
resent the counts as well. (The bars can also be drawn horizontally with
equal heights but different lengths.)

Figure 2.1 shows an example of two barcharts. In the plot on the left
the bars are plotted horizontally, and on the right the bars are drawn
vertically. Whereas the vertical plot follows the more natural stacking
principle, the horizontal one is better for labelling the graphic.

Spineplots

In many situations it is desirable to look at the distribution of a sub-
group of a categorical variable. Going back to the example of Figure 2.1,
it might be interesting to know the proportions of females in the different
divisions. Figure 2.2 shows two examples of how this extra information
may be included in a barchart. The left barchart just adds a barchart for
females within the same scale of the barchart for the complete sample.
The right plot is what most spreadsheet-like applications do: separate
barcharts for each group are plotted side by side for all divisions. This
plot is much harder to read, as there are twice as many bars as before.
However, the left plot does not make comparing the proportions of fe-
males across the different divisions easy. Each bar of a subgroup must

New England

Middle Atlantic

South Atlantic

East South Central

West South Central

East North Central

West North Central

Mountain

Pacific

2.2 Plots for Categorical Data

33

NEd

MAc

SAc

ESC

WSC

ENC

WNC

Mnn

Pcc

Fig. 2.2. Two barcharts showing the proportion of females (red highlighting) in
each Division in the Census dataset.

be compared to the bar of the complete sample, which is visually not a
straightforward task. A solution for this problem is the spineplot. In a
spineplot all bars have equal length, but proportional width, which re-
tains the proportionality of the area. As the length of each bar is now
standardized to be 100%, the highlighting can be drawn from 0% to the
proportion of the subgroup in a particular bar. Figure 2.3 illustrates a
highlighted barchart and spineplot. Whereas the barchart enables a good
comparison of the absolute counts of the subgroup, the spineplot enables
a direct comparison of the proportions.

2.2.2 Mosaic Plots for Multi-dimensional Categorical Data

Highlighted spineplots already incorporate information of more than just
one categorical variable in a single plot. Mosaic plots, which were ﬁrst

New England

Middle Atlantic

South Atlantic

East South Central

West South Central

East North Central

West North Central

Mountain

Pacific

New England

Middle Atlantic

South Atlantic

East South Central

West South Central

East North Central

West North Central

Mountain

Pacific

Fig. 2.3. A spineplot (right) allows the comparison of proportions across categories.

34

2 Statistical Graphics

Married

Nvd

Divorced

Spd

Widowed

Married

Nvd

Dvd

Spd

Wdd

Fig. 2.4. A barchart and spineplot for marital status with female heads of house-
hold selected.

introduced by Hartigan and Kleiner (1981), are designed to show the de-
pendencies and interactions between multiple categorical variables in one
plot. Figure 2.4 shows a barchart and spineplot for marital status with fe-
male heads of household selected. A spineplot can be regarded as a kind of
one-dimensional mosaic plot. Figure 2.5 shows the corresponding mosaic
plot for the data in Figure 2.4. In contrast with a barchart, where the bars
are aligned to an axis, the mosaic plot uses a rectangular region, which is
subdivided into tiles according to the numbers of observations falling into
the different classes. This subdivision is done recursively, or in statisti-
cal terms conditionally, as more variables are included. Figure 2.6 shows
an example of a mosaic plot for the US-Census data. Starting with the
variable Marital Status, the initial rectangle (i.e. the complete square) is
divided along x according to the classes of this variable (cf. Figure 2.6,
left). In the second step, the variable Education — summarized as a bi-
nary response of college education or higher and highschool or less — is
incorporated. This is done by dividing each bar or tile of Marital Sta-

Married

Never M. Divorced S. Wid.

Fig. 2.5. A one-dimensional mosaic plot for marital status

2.2 Plots for Categorical Data

35

l

o
o
h
c
s

h
g
h

i

n
a
h
t

s
s
e
l

r
e
h
g
h

i

d
n
a

e
g
e
l
l

o
C

Married

Never M. Divorced S. Wid.

Married

Never M. Divorced S. Wid.

Fig. 2.6. Development of a mosaic plot including Marital Status and Education
(all females are highlighted).

tus according to Education along y. The plot (Figure 2.6, right) shows
that the groups of people who are married or were never married have
approximately equivalent education levels. Only about one fourth of all
widowed heads of household have some college education. The third vari-
able in the plot is Gender, which is shown as horizontal highlighting in
all combinations of Marital Status and Education. This plot shows that
Gender and Education are independent, given any class of Marital Sta-
tus. At this point it is easier to use highlighting instead of including the
gender information via a third variable as the next split along x.

A detailed discussion on how to detect dependence structures in mo-

saic plots can be found in Theus and Lauer (1999).

The recursive construction of a mosaic plot means that the only limit
for the number of variables included is the number of tiles to display, i.e.
the number of possible combinations of the variables. Labeling of mosaic
plots is not an easy task even with relatively few variables. Usually it
is possible to label the ﬁrst 2 to 3 variables in the plot all further infor-
mation should be provided by interactive queries (cf. Chapter 4). If inter-
active queries are not available, the following strategy has proved to be
helpful. Variables with only few categories should be put in the plot ﬁrst,
to keep the number of conditioned groups small. If one of the variables in
the plot is a binary response, showing this variable via highlighting will
reduce the number of tiles by half.

Note that the gaps between the tiles are not part of the rectangular
region that is used to build the tiles. The gaps are there to improve visual
discrimination.

36

2 Statistical Graphics

2.3 Plots for Continuous Data

The most commonly used plots for continuous data are dotplots, box-
plots, and histograms for one-dimensional data and scatterplots for two-
dimensional data. Methods and plots for higher dimensions of continuous
data include parallel coordinates and the Grand Tour.

2.3.1 Dotplots, Boxplots, and Histograms

The simplest way to plot univariate continuous data is a dotplot. Because
the points are distributed along only one axis, overplotting is a serious
problem, no matter how small the sample is. The usual technique to avoid
overplotting is jittering, i.e., the data are randomly spread along a virtual
second axis. Figure 2.7 shows an example of a jittered dotplot for the
variable Horsepower of the Cars2004 data. Although jittering was used,
the overplotting still masks parts of the distribution, and a quantiﬁcation
of the density is not easily possible. Nevertheless, the accumulation of
cases around 300 hp and the gap between 400 hp and 450 hp are clearly
visible, which might not be the case in other plots.

Histograms use area to represent counts of a distribution. This makes
them somewhat related to barcharts and mosaic plots, although the num-
ber or the width of the bins of a histogram is not determined a priori and
the bins are drawn without gaps between them reﬂecting the continuous
scale of the data. Whereas barcharts and mosaic plots show the exact dis-
tribution of the sample, a histogram is always just one approximation to
the distribution of the data. Sometimes histograms are also used as crude
density estimators for some “true”, but usually unknown, underlying dis-
tribution for the data. There are much better density estimation methods
that produce smooth distribution displays. Average Shifted Histograms
(ASH)
(Scott; 1992) is one of them — see also Section 6.2. Figure 2.8
shows a histogram for the same data as in Figure 2.7. The histogram

(cid:2)
(cid:2)

(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)

(cid:2)

(cid:2)

(cid:2)
(cid:2)

(cid:2)
(cid:2)

(cid:2)
(cid:2)
(cid:2)

(cid:2)

(cid:2)

(cid:2)

(cid:2)

(cid:2)
(cid:2)

(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)

(cid:2)

(cid:2)
(cid:2)

(cid:2)

(cid:2)

(cid:2)

(cid:2)
(cid:2)

(cid:2)

(cid:2)

(cid:2)
(cid:2)
(cid:2)
(cid:2)

(cid:2)

(cid:2)

(cid:2)

(cid:2)
(cid:2)
(cid:2)
(cid:2)

(cid:2)

(cid:2)
(cid:2)

(cid:2)

(cid:2)
(cid:2)

(cid:2)

(cid:2)

(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)

(cid:2)
(cid:2)
(cid:2)
(cid:2)

(cid:2)
(cid:2)
(cid:2)
(cid:2)

(cid:2)

(cid:2)
(cid:2)

(cid:2)
(cid:2)

(cid:2)
(cid:2)

(cid:2)

(cid:2)
(cid:2)
(cid:2)

(cid:2)

(cid:2)
(cid:2)
(cid:2)

(cid:2)

(cid:2)
(cid:2)

(cid:2)
(cid:2)

(cid:2)
(cid:2)

(cid:2)
(cid:2)
(cid:2)

(cid:2)

(cid:2)
(cid:2)

(cid:2)

(cid:2)
(cid:2)

(cid:2)
(cid:2)

(cid:2)

(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)

(cid:2)

(cid:2)

(cid:2)
(cid:2)

(cid:2)

(cid:2)

(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)

(cid:2)
(cid:2)
(cid:2)

(cid:2)
(cid:2)
(cid:2)

(cid:2)

(cid:2)

(cid:2)
(cid:2)

(cid:2)

(cid:2)

(cid:2)
(cid:2)
(cid:2)
(cid:2)

(cid:2)

(cid:2)

(cid:2)
(cid:2)

(cid:2)

(cid:2)
(cid:2)
(cid:2)

(cid:2)
(cid:2)

(cid:2)

(cid:2)

(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)

(cid:2)

(cid:2)
(cid:2)
(cid:2)
(cid:2)

(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)

(cid:2)
(cid:2)
(cid:2)
(cid:2)

(cid:2)
(cid:2)

(cid:2)

(cid:2)

(cid:2)

(cid:2)

(cid:2)

(cid:2)

(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)

(cid:2)
(cid:2)
(cid:2)
(cid:2)

(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)

(cid:2)
(cid:2)

(cid:2)
(cid:2)(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)

(cid:2)
(cid:2)

(cid:2)
(cid:2)

(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)

(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)

(cid:2)

(cid:2)

(cid:2)

(cid:2)

(cid:2)

(cid:2)
(cid:2)

(cid:2)

(cid:2)
(cid:2)
(cid:2)

(cid:2)
(cid:2)
(cid:2)
(cid:2)(cid:2)

(cid:2)

(cid:2)

(cid:2)
(cid:2)

(cid:2)

(cid:2)
(cid:2)

(cid:2)
(cid:2)
(cid:2)

(cid:2)

(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)

(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)

(cid:2)

(cid:2)
(cid:2)

(cid:2)

(cid:2)

(cid:2)

(cid:2)
(cid:2)

(cid:2)

(cid:2)

(cid:2)

(cid:2)
(cid:2)

(cid:2)
(cid:2)

(cid:2)
(cid:2)
(cid:2)

(cid:2)

(cid:2)

(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)

(cid:2)

(cid:2)

(cid:2)

(cid:2)

(cid:2)

(cid:2)

(cid:2)
(cid:2)
(cid:2)

(cid:2)

(cid:2)

(cid:2)

(cid:2)

(cid:2)

(cid:2)

(cid:2)
(cid:2)

(cid:2)

(cid:2)

(cid:2)

(cid:2)

(cid:2)

(cid:2)
(cid:2)
(cid:2)

(cid:2)
(cid:2)
(cid:2)

(cid:2)
(cid:2)

(cid:2)
(cid:2)
(cid:2)

(cid:2)

(cid:2)
(cid:2)
(cid:2)
(cid:2)

(cid:2)

(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)

(cid:2)

(cid:2)

(cid:2)

(cid:2)
(cid:2)

(cid:2)

(cid:2)

(cid:2)
(cid:2)

(cid:2)

(cid:2)
(cid:2)

(cid:2)
(cid:2)
(cid:2)

(cid:2)

(cid:2)

(cid:2)

(cid:2)

(cid:2)

(cid:2)

(cid:2)
(cid:2)

(cid:2)

(cid:2)

(cid:2)
(cid:2)

(cid:2)

100

200

300

400

500

Fig. 2.7. A jittered dotplot of Horsepower for the Cars2004 data.

2.3 Plots for Continuous Data

37

100

200

300

400

500

Fig. 2.8. A default histogram of Horsepower for the Cars2004 data.

gives a much better impression of the distribution than the dotplot in
Figure 2.7 does. A good approximation to the shape of the data distribu-
tion depends strongly on the chosen anchorpoint, i.e., the point where the
ﬁrst bin starts, and the binwidth, i.e., the width of the intervals used to
draw the histogram. For the example, the accumulation of cases at about
300 hp is not visible in Figure 2.8. Changing the anchorpoint from 50 to
70 and the binwidth from 50 to just 20 gives the plot in Figure 2.9, which
now shows all the features found in the dotplot in Figure 2.7. Being able
to change these plot parameters quickly is a typical interactive feature,
which will be discussed in more detail in Chapter 4.

Boxplots are another popular alternative for univariate continuous
data. Boxplots use a mixture of summary information (as histograms do)
and information on individual points (as dotplots do). The center line in a
boxplot is marked by the median ˜x0.5 of the sample. Upper and lower ends
of the box are determined by the upper and lower hinges xu and xl, which

100

200

300

400

500

Fig. 2.9. A histogram of Horsepower for the Cars2004 data, with anchorpoint 70
and binwidth 20.

38

2 Statistical Graphics

(cid:2)(cid:2)
(cid:2)(cid:2)

(cid:2)

(cid:2)

(cid:2)(cid:2)
(cid:2)

100

200

300

400

500

Fig. 2.10. A boxplot of Horsepower for the Cars2004 data.

are the medians of the upper and lower halves of the sample divided at
the median. The dotted lines — the so called “whiskers” — are drawn
from the box up to the most extreme point, which is not further away
from the hinge than 1.5 times the h-spread (deﬁned as the distance be-
tween the hinges), i.e., xu −xl. All points further away from the center are
marked as outliers by a single dot. If points exceed 3 times the h-spread,
they are marked as extreme-outliers. The virtual thresholds, hinge + 1.5
or 3 times the h-spread, are called inner fences and outer fences.1

Figure 2.10 shows the data from Figure 2.7 and 2.8 in a boxplot. The
boxplot can neither show the second mode around 300 hp nor any gaps
in the data that are not between outliers. Boxplots are very good for com-
paring distributions because they take up little space and can be drawn
parallel to one another.

To highlight a subgroup of the data in a boxplot, the boxplot for all
data is often modiﬁed as shown in Figure 2.11. In the base boxplot show-
ing all data, the whiskers are drawn as light-gray boxes, which allows
plotting of a standard boxplot for the highlighted data on top of the base
boxplot for all data.

Table 2.1 gives an overview of the strengths and weaknesses of the

three plots.

Fig. 2.11. A boxplot of Horsepower for the Cars2004 data, with all 4-cylinder cars
highlighted.

1 Many statistical software packages do not stick to Tukey’s original deﬁnition,

which can make boxplots confusing to interpret.

2.3 Plots for Continuous Data

39

Table 2.1. A Comparison of the Strengths (+) and Weakness (–) of Plots for Uni-
variate Continuous Data (‘o’ Means Neither Strength nor Weakness)

Dotplot Histogram Boxplot

Visualizing the shape of a distribution

Detection of outlier

Inspection of gaps, discreteness

Size of the sample

Comparison of distributions

–

+

+

o

–

+

–

o

o

o

o

+

–

–

+

2.3.2 Scatterplots, Parallel Coordinates, and the Grand Tour

Except for the dotplot, none of the plots presented in the last section has
a natural generalization to more than one dimension. The scatterplot is
the natural counterpart of a dotplot in two dimensions — the 3-D rotating
plot in three dimensions.

Scatterplots and Scatterplot Matrices

The scatterplot is the ideal plot to display the structure of two-dimensional
continuous data. In a scatterplot, two variables are plotted in a cartesian,
i.e., orthogonal coordinate system.

(cid:3)

(cid:2)

Higher-dimensional structures are often depicted in a so-called scat-
terplot matrix or SPLOM. In a SPLOM for k variables,
scatterplots
are plotted to display the k(k − 1)/2 bivariate relationships of all k vari-
ables. The scatterplot of variable i vs. variable j is plotted in the upper
triangle matrix of size k −1 at position (i, j). Figure 2.12 gives an example
of a scatterplot matrix for 5 variables. The 10 scatterplots are arranged
to accommodate all 10 pairs of the 5 variables. Often a univariate plot
of variable i is plotted at position (i, i) in the plot matrix. In Figure 2.12
only the names of the variables are noted on the diagonal, and the 10
transposed plots are shown in the lower triangle matrix.

k
2

The natural generalization of a two-dimensional scatterplot is the
three-dimensional rotating plot, which gives a three-dimensional view of
continuous data. The pseudo rotation is generated by a rapid succession
of two-dimensional projections with smoothly changing projection angles.

The Grand Tour

So far, all plots have been rendered on a two-dimensional medium, a sheet
of paper or a computer screen. Even a 3-D rotating plot is “just” a 2-D

40

2 Statistical Graphics

2

3

4

5

6

10

20

30

40

50

60

●

●

●

Price

●

●

●
●

●
●

●

●
●
●
●
●
●●
●
●
●
●
●●
●
●
●
●
●
●
●
●●
●
●
●
●
●
●
●
●●
●
●
●
●
●
●
●
●
●
●
●
●
●●
●
●
●
●

●

●
●
●

●

●
●

●
●
●
●
●

●
●
●
●
●
●
●
●
●
●●
●
●
●
●
●
●

●

●
●
●
●
●
●
●
●

●
●
●
●
●
●
●

●

●
●

●
●
●
●
●
●
●
●
●
●
●
●
●
●●
●
●●●
●●
●●
●

●●
●

●
●
●
●
●
● ●
●
●
●
● ●●
●
●
●●●
●
●●●
●

●

●
●●
●
●
●
●
●●
●
●●
●
●
●
●
●
●
●

●
●
●
●
●
●
●
●
●
●
●
●
●
●●
●
●
●
●●
●
●●
●
●

●
●
●
●
●
●

●
●
●●

●

●
●
●
●
●
●●●
●●●●
●
●

●
●●

●
●
●

●●
●
●
●
●
●
●
●
●●●
●
●
●
●●●
●
●●●
●
●●
●
●
●
●
●●
●
●
●
●
●
●
●
●
●
●
●

●
●

●

●
●
●●
●
●●
●
●

●

●

●

●

●

●
●
●●●

●
●
●●
●●●
●
●●

●
●
●●

●
●

●

●
●
●

●

●
●
●

●

●
●
●

●
●

●
●
●

●
●

●
●
●
●

●
●
●
●
●

●

●

●

●

●
●

●
●
●

●
●

●
●

●

●

●

●
●
●
●
●
●
●
●
●
●
●
●
●
●
●
●
●
●

●

●

●

●
●

●

●
●

●

●

●●
●

●

●

●

●

●

●

●

●

●

●

●

●
●
●

●

●

●
●

●

●
●

●

●

●

●
●

●
●

●

●

●
●
●
●
●
●
●
●

●

●
●

●

●
●●
●
●
●
●
●

●

●

●
●

●

●
●
●
●

●
●
●

●

●
●
●
●
●
●
●
●
●
●
●
●●
●
●
●
●
●
●
●

●
●

●
●

●

●
●
●

●

●

●

●

●

●
●
●
●

●

●
●
●

●

●

●

●

●
●

●
●
●
●

●
●
●
●●
●
●
●
●
●
●
●
●
●
●
●
●
●
●
●
●
●
●●
●
●
●●●
●
●
●
●
●
●
●
●
●
●
●
●
●●●
●
●
●
●
●●
●
●
●
●
●
●
●
●●● ●
●
●
●
●
●●
●
●
●
●
●
●●
●
●
●
●
●
●
●
●
●
●
●
●
●
●
●
●●
●
●
●●●
●
●
●
●●
●
●
●
●●
●●
●● ●
●
●●
●●
●
●
●
●
●
●
●
●
●
●●
●
●
●
●
●
●●
●
●
●
●●
●
●
●
●
●
●
●
●
●
●
●
●
●
●
●
●
●
●
●
●
●
●
●
●
●●
●●
●
●
●
●
●
● ● ●●
●
●
●●●
●
●
●
●
●
●
●
●●
●●
●
●
●●
●
●●
●
●
●
●
●
●
●●
●
●
●
●
●
●
●
●
●
●
●
●
●
●
●
●
●
●
●●●
●●●●
●●●●
●
●●
● ●●●
● ●
●●
●●●
●●
●●
●
●
●
●

●

●
●
●
●●
●●●
●
●●●
●●

2

0
6

0
5

0
4

0
3

0
2

0
1

6

5

4

●

● ●

● ●

●
●

●
●●

●

●

●

●

●

●

●

●

●

●

●

●

●

●
●
●
● ●
●
●
●
●

● ●
●
●
●

●
●
● ●
● ● ● ●

●

●

●
●
●
● ●
● ●
●
●
● ●
●

●

●

●
● ●●
● ● ●
●
●
●

●
●

●
●
●

●

●

●
●

●
●
●
●
●
●
●
●● ●● ●

●

●
● ●
●●

●
●
● ●
●

●
●

●

●
● ●●
●
●
●
●
●
●
●●
●●●●
●
●
●
●
●●●
●
●
●
● ●
●
●
●
●
●
●
●
●
●
●● ●
●
●
●
●
●
●
● ●
●
●
●
● ●
●
●
●
●
●●
●
●

●●

●
●
●

● ●●

●
●

●

3

●
●●
●●●
●
● ●
●
●
●
●
●●
●
●
●

●
●
●
●
●
●●
●●
●●
●●● ●
●
●
●●●● ●
●●●
●
●
●

●
●
●

●
●●
●
●●●

●

●
●

●
●
●●
●●
●
●
●
●
●
●
●
● ●
●
●
●
●
●●
●

●
●
● ●
●
●
●
●

●

●
●●
●
●●●
●●
●
●
●
●
●●
● ●●
●
●
●
●●
●●
●
●●
●
●
●
●● ●●●●
●●●
●
●

●

● ●
●●●●●●
●●●

●
●
●
●
●
●
●
●
●
●
●
●
●
●
●
●
●●
●●
●
●
●

●●
●

●●

●
●●

●●
●●●
●
●
●●●
●●●
●
●
●●
●●●
●
●●
●●●
●
●

●
●
●

● ●

●

● ●

●

● ●
●
●
●
●
●

●

●
●

●

●

●
●
●
●
●

●

●
●

●

●

●
●
●●

●
●
●
●

●
●
●

●

●

●

●

●

●
●

● ●
●
●
●
●
●
●

● ●
●
●
●
●
●
●
●
●
●●
●
●
●
●
●●
●
●
●
●
●
●
●
●
●
●
●
●●
●
●
●
● ●
●
●
●
●
●
●
●
● ● ●
●
●
●●
● ●
●
●
● ●
●
●
●
●
●●
●
●
●●
●●●
●
●
●
●●
●
●
● ●
● ●
●
●●●● ●
●
●●
●
●
●
●
●●
●●
●
●
●
●
●●
●
●
●●
●●●
●●
●
●●
●
●
●●
●
●
●
●
● ●
●
● ●
●
●
●
●
●
●
●
●
●
●●
●
● ●
●●
●
●
●
● ●
●
●●
●●
●
●
●●
●
●
●
●● ●
●
●
●
●
● ●
●
●
●
●
●
●
●
●
●
●
●
●
●
●
●
●
●
●
●
●●
●
●
●
●●●
●
●
●●
●●
●
●
●●
●
●
●
●
●
●
●●
●●
●
●●
●
●
●
●
●
●
●
●
● ●●
●
●●
●
●
●●
●
●
●●●
●
●● ●●●●
●
●●●●
●●●
●
●
●
●●●
●●
●
●●
●●●
● ●
●●●
●
●
●
●●●
●
●
●●
●●
●●●

●
●
●

●●

●●
●

●

●

●
●
●
●
●

●

●

●
●

●

●

●
●

●●●

●

●

●

● ●

●
● ●

●
● ●●

●

●
●

●

●

● ●
●

●

●

●

●

●

●

●

●

●

●

●
●

●

●

●

●

●

●

●

●

●

●

●

●

●

●

●
●
●
●

●

●

●

●

●
●
●
●
●●●
●
●
●
●
●
●●
● ●●●●
●●
●
●
●●
●●●
●●
●
●
●
●●
●
●
●●●
●
●
●
●
●
●
●●●●
●
●
●
●
●
●
●
●●●
●●
●
●●
●
●
●●
●
●
●
●●
●
●
● ●
●
●
●
●
●
●
●
●
●
●
● ●
●
●
●
●
● ●
●
●
●
●
●
●
●
●
●●●
●
●
● ●
●
●
●
●
●
●●
●
●
●
●●
●
●
●
●
●
●●
●
●
●
●●●
●●●
●
●
●
●●
●
●●
●
●●
●●
●
●
●
● ●
●
●
●
●
●
●
●●
●
●
●
●
●
●
●●●
●
●
●
●
● ●●
●
●
●●
●
●●
● ●
●
●●
●●
●●
●
●
●
●
●
●
●
●●
●
●
●●●●●
●
●● ●
●
●
●
●
●
●
●
●
●●
●
●
●
●●
●
●●
●
●
●
●
●
●
●
●
● ●
●
●
●
● ●
● ●
●
●
●
● ● ●
●
●
●
●
●
●●
●
●
●
●
●
● ●
●
●
●
●
●
●
●
●
●
●
●
●
●
●●
●
●
●
●
●
●
●
●
● ●
●
●
●
●

●●
●
●
●
● ●
●
●
●
●
●
●● ●
●
●
●●

●
●
●

●
●
●

●

●

●

●
●
●
●

●

●

●
●

●

●

●
●
●
●●
●
●

●

●

●

●

●

●
●

●

●

●

●

●

●

●

●
●
●
●
●

●
●

●●
●
●
●
●
●
●
●●●
●
●
●
●
● ●
●
●
● ●
●
●
●
●
●
●
●
●
●
●
●
●
●
●
●
●
●
●
●
● ●
●
●●
●
●
●
●
●
●
●
●
●
●
●
●
●●
●
●
●
●
●
●
●
●
●
●
●
●
●
●
●
●
●
●
●
●●
●
● ●
●
●
●
●
●
●
●
●
●
●●
●●
●
●
●
●
●
●
●
●●
●
●
●
●
●
●
●
●
●●
●
●
●
●
●
●
●
●
●
●
●
●●
●
●
●
●
●●
●
●
●●
●
●
●
●
●
●●●
●
●
●
●
●
●
●●
●
●
●
●
●●
●
●
●●
●
●
●
●
●
●
● ●
●
●
●
●
●
●
●
●
●
●
●
●
●
●
●
●
●
●●●
●
●
●
●
●
●
●
●
●●
●
●
●
●●●
●
●
●●●
● ●●
●
●
●
●
●●
●●●●
●●
●
●
●
●●●
●●
●●
●
●
●
●
●
●●
●
●
●●

●
●●

●
●
●

●
●

●
●

●●

●

●

●

●
●
●
●
●
●
●
●
●
●
●
●
●●
●
●
●
●
●
●
●
●
● ●
●
●
●
●
●
●
●

●
●

●

●

● ●

●

●●
●

●

●
●

●

●
●

●
●

●

●

● ●
●
●
● ●
●
●

●

●

●
●

●
●
● ●
●

●

●

●

●

●

●

●

●

●
●

●

● ●

●

●

●

●

●
●
●

●

●

●

●
●

●

●

●

●

●

●

●
●

●

●

●

●

●

●

●

●

●

●

Engine Size

●●

●●

●

●
●

●●
●

●●

●
●
●
●
●
●

●

●
●●
●

●
●
●●●

●

●
●●
●●

●

●
●

●
●
●

●
●

●

●
●

●

●

●
●
●
●
●

●
●●
●
●
●●
●●

●

●
●●

●
●●●

●
● ●

●
●
●●

●

●
●

●

●
●

●
●
●
●

●
●●
●
●
●●
●

●
●
●●

●

●
●
●

●
●●
●
●

●●
●

●●
●●
●
●

●
●

●
●

●●
●
●

●
●
●

●

●●

●
●

●
●
●

●
●●
●

●

●

●
●
●
●●●

●
●
●
●

●●
●

●
●

●●

●●●

●

●

●
●
●●
●

●
●
●

●

●

●

●

●●

●
●

●

●

●
●
●
●

●

●

●
●
●
●●●
●

●
●
●●●
●
●●
●
●●
●●
●
●
●●●
●●
●
●
●●
●
●
●●
●
●●
●

●
●
●●●
●
●●

●

●
●
●
●●●●●●
●●●
●
●

●
●
●
●

●
●●
●
●
●●●
●
●
●
●
●● ●●
●●
●●
●●
●
●●●●●
●●●
●

●●

●
●

●
●●
●
●

●

●

●
●

●
●
●
●

●

●
●

●
●
●

●
●

●
●

●
●
●
●
●
●
●

●

●●
●●

●

●

●
●
●

●

●

●

●
●
●

●●

●
●
●●●
●●

●●●

●

●

●●●
●

●●
●●●
●
●●

●
●
●●●
●

●

●

●●

●

●●●
●●
●
●
●●●
●

●

Horsepower

●●
●

●●

●
●

●
●
●
●
●
●
●
●

●

●

●

●
●
●●

●

●●●

●●
●
●

●
●●
●
●
●
●●
●
●
●
●
●●
●
●●
●
●
●
●●

●
●
●
●
●
●●
●

●
●

●●

●

●

●
●

●
●
●
●●
●
●
●

●

●
●
●●
●
●
●

●

●
●

●
●
●
●●●
●
●
●
●

●

●●
●
●

●
●
●

●
●●
●●
●

●
●
●

●
●
●
●

●

●

●
●

●●
●

●

●
●●●

●

●

●
●

●
●
●

●
●

●

●
●
●●●
●●
●●
●
●●
●●
●

●
●●

●
●
●
●

●●
●
●
●●
●
●
●
●
●
●
●

●

●
●

●

●
●

●
●

●
●

●
●

●

●
●

●●
●
●●
●
●
●
●●●
●●
●
●●●●●
●●
●
●●
●
●●
●●●
●●
●
●
●
●
●

●

●
●
●
●

●

●

●
●●
●

●

●
●
●●●

●●
●

●
●
●
●

●

●

●

●

●
●●
●

●
●

●
●

●
●
●
●
●●●
●
●
●
●
●
●●
●
●
●●
●●
●
●
●●
●●
●
●●
●
●●●
●
●●
●

●

●
●
●
●●●
●
●●●●●●
●

●

●

●●●

●●●●●
●
●
●
●
●

●
●

●
●●

●
●●
●
●
●

●

●●
●
●

●
●
●
●●
●
●●
●
●
●
●
●
●
●
●

●
●
●
●
●
●●●
●
●
●

●

●●
●

●
●
●
●
●
●●
●●
●
●
●
●●
●
●
●
●
●
●
●
●

●
●
●

●

●

●

●

●

●
●●
●●
●
●
●●
●
●
●
●
●
●●
●
●
●
●
●
●
●●
●
●
●
●
●
●
●
●
●
●
●
●
●
●
●
●
●
●

●

●
●

●

●
●
●
●
●●
●
●
●
●
●
●
●
●
●
●
●

●
●
●

●
●

●●
●●
●●
●
●

●
●

●

●

●
●

●●
●
●
●
●
●
●●
●
●●●●
●
●● ●
●
●●
●
●
●
●●
●
●
●
●
●
●
●
●

●

●
●
●
●
●●
●
●
●
●
●
●

●
●
●

●

●

●●
●
●

●
●

●
●
●
●
●

●●
●

●●

●●●

●
●

●●●
●●
●
●
●●
●
●
●●●

●●
●
●
●
●
●● ●
●
●
●
●
●
●
●

●

●●

●

●

●

●

●

●

●
●
●

●
●

●
●

●

●

●

●

●

●
●

●

●
●

●

●

●
●
●

●
●
●
●
●
●
●
●
●
●
●●
●

●

●

●

●

●

●

●
●

●

●●

●

●

●

●

●

●

●
●
●●
●
●

●●
●
●
●●
●
●
●

●

●

●

●

●
●
●

●
●
●
●●
●
●
●

●
●
●

●

●

●

●
●
●
●

●
●
●
●
●●
●
●

●
●●
●
●
●
●
●
●●
●
●
●
●
●
●
●
●
●

●
●
●
●

●

●

●
●
●

●

●
●

●
●
●

●

●

●
●

●

●
●
●●

●

●
●
●

●
●
●
●
●●
●
●
●
●
●
●
●
●
●
●
●
●
●
●
●
●
●
●
●
●
●●
●
●
●
●
●●
●●
●
●

●

●

●

●
●

●

●

●
●

●

●

●

●
●
●
●
●
●
●
●
●
●

●

●

●
●●

●
●

●
●
●

●

●

●
●

●
●
●
●
●
●
●
●
●
●
●
●
●
●
●
●
●
●
●
●
●
●
●

●
●

●

●

●●
●
●●
●
●
●
●
●
●
●●
●
●
●
●●
●
●
●

●
●
●

●●

●

●
●

●
●
●
●
●●
●●●
●
●
●

●
●●

●

●

●
●
●
●

●
●
●●

●

●

●

●
●
●
●
●

●
●
●
●
●●●
●
●
●●●
●
●
●●

●

●

●
●

●

●

●
●●
●
●
●
●

●
●
●
●
●
●
●
●
●
●●
●●●●
●

●

●

●

●
●

●●
●

●
●●
●

●

●
●
●
●
●●
●
●●

●

●

●

●

●
●

●
●

●
●
●

●
●

●●
●
●●●
●
●

●●●

●
●
●
●●

●●

●
●
●●

●●●

●●●

●

●●●●●
●
●●●
●
●
●
●

●●
●
●
●
●

●
●
●
●

●
●
●
●
●
●
●
●
●
●
●
●
●
●
●
●●●
●●
●
●
●●
●
●●●
●●
●●
●
●
●
●
●
●

●
●
●

●
●
●
●
●
●
●
●
●
●
●
●
●
●
●
●
●
●
●●
●

●

●●

●

●
●
●
●●
●●

●
●

●
●
●
●
●

●

●
●
●

●
●

●

●●

●

●

●●
●

●
●

●

●

●
●
●
●
●

●●

●
●
●

●
●●
●
●
●
●
●●
●
●● ●
●
●
●
●
●
●
●
●●
●
●
●●
●
●●
●
●
●
●
●●
●
●
●
●
●
●
●●
●
● ●
●
●●
●
●●
●
●
●
●
●
●
●
●
●
●●
●
●●●
●●
●
●
●

●
●●
●
●
●
●
●
●
●
●
●

●

●
●
●

●
●

●

●

●
●

●

●

●
●

●

●

●●
●

●

●

●

●

●

●

●
●
●●
●
●
●

●

●
●●
●
●
●
●

●●

●

●●
●

●●

●
●
●

●
●
● ●●
●
●
●
●

●
●●

●

●

●
●
●
● ●

●

●
●
●
●
●
●
●
●
●
●
●
●

●
●

●●●

●

●

●
●
●

●

●

●

●

●

●

●
●
●
●
●

●

●

●

●

●

●

●

●
●

●

●

●●

●

●
●

●

●
●
●●

●

●

●

●
●

●

●

●
●

●

●●

●

●
●

●
●

●

●

●

●●

●

●

●
●●

●

●

●

●
●

●
●

●

●

●
●
●●
●
●

●
●

●

●

●

●

●

●

●
●
●

●

●●
●
●●
●
●
●
●
●●
●
●

●
●
●

●

●

●
●●
●
●
●

●
●
●

●
●
●
●
●
●
●

●
●
●
●
●
●●
●
●
●
●
●
●
●
●●
●
●
●●

●
●
●
●
●
●
●

●●

●

●
●
●
●
●

●
●
●

●
●
●
●

●
●
●
●
●

●

●
●
●●
●

●

●
●

●
●

●
●●

●
●

●

●

●

●
●

●
●

●

●●

●
●

●

●

●

●

●

●
●
●
●

●

●

●

●
●

●
●
●
●
●●

●

●

●
●
●
●
●
●
●
●

●
●
●

●

●

●

●

●●
●
●●

●

●

●

●

●

●
●
●
●
●
●
●
●
●
●
●
●
●
●
●
●
●
●

●

●
●
●
●
●

●

●

●
●
●
●
●
●
●
●

●
●
●
●
●●
●
●
●
●
●
● ●
●
●
●●
●
●
●
●
●
●
●
●
●
●
●
●
●
●

●
●
●

●

●

●

●●

●

●

●

●
●

●●

●

●
●
●
●●
●
●
●
●
●●●
●●●
●
●
●
●●
●●
●●
●
●
●
●
●●●
● ●
●●
●

●●

●

●
●
●
●
●●
●
●
●●

●●
●

●

●●

●
●

●●

●
●

●

●

●
●
●
●

●

●●
●

●
●
●●

●

●

●
●
●
●

●

●

●
●
●
●
●

●●
●

●

●

●

●

●

●

●
●

●

●

●
●

●

●
●

●

●

●
●

●

●

●

●

●
●
●
●
●
●

●
●
●

●
●

●

●
●

●

●

●

●

●

●

●

●
●
●

●

●

●●
●●
●

●
●

●●●
●●●
●
●
●●
●●
●
●
●
●

●

●

●
●●

●●●
●
●
●●

●
●
●
●
●
●
●
●
●
●●
●
●
●
●

●

●
●
●
●
● ●
●
●
●
●

●
●●
●
●●●
●
●
●●
●●●

●
●●●

●

●

●
●
●●●
●

●
●
●●
●●
●●●

●

●

●

●

●
●
●

●
●

●
●

●

●

●●
●
●
●●●
●
●

●

●
●

●●●

●
●
●●

●
●●●
●
●
●
●
●
●
●
●

●●
●●

●
●

●

●
●●

●

●
●

●
●

●

●
●

●

●
●

●

●

●

●

●

●
●
●

●
●●

●

●

●
●

●

●

●
●

●
●
●
●
●
●

●

●

●

●

●
●
●

●

●●
●
●
●
●
●

●
●
●

●
●
●

●

●

●

●

●
●
●
●●
●●
●
●
●
●
●
●

●

●

●
●
●
●
●

●

●
●
●

●

●

●
●

●

●
●
●
●
●
●
●

●

●

●
●
●

●
●
●
●
●
●
●
●
●

●
●

●
●
●
●
● ●
●
●
●●
●
●
●
●
●
●
●
●
●
●
●
●
●
●
●
●
●
●
●
●
●
●
●
●
●●
●
●
●
●●
●●●
●
●
●
●
●
●
●
●
●
●●●
●
●
●
● ●
●●
●
●
●
●
●
●
●
●
●● ●
●●
●
●
●
●
●
●
●
●
●
●
●
●
●
●
●●●
●
●
●
●
●
●
●
●
●
●
●
●
●
●
●
●
●●
●
●
●
● ●●●
● ●
●
●
●
●●
●●●
●
● ●
●●
●
●
●
●
●
●
●● ●●
●
●
●
●
●
●●
●
●
●
●
●
●
●
●
●
●
●
●
●
●
●
●
●
● ●
●
●
●
●
● ●
● ●
●
●
● ●
●
●
●
●●
●
●●●
●
●
●
●●
●●●●
●
●
●●
●
●●
●
●
●
●
● ●
●
●
●
●
●
●
●
●
●
●
●
●
●
●●●●
●
●●
●
●●
●●●
●●●●●
●●
●
●
●
●●
●
●●●
●
●

●

●
●

●
●
●●●

●
●
●●
●

●
●
●

●●●

●

●

●
●

●

●

●

●

●

●
●

●
●
●
●

●

●

●
●

●

●
●

●

●

●
●

●

●
●

●

●

●

●

●

●

●

●

●

●

●

●

●

●
●

●
●
●●
●
●
●
●
●
●
●
●
●● ●
●
●
●●
●
●
●
●
●
● ●●
●
●
●●
●●
●
●
●
●
●
●
●
●●
●
●
●●
●
●
●
●
●
●
●
● ●●
●
●
●
●
●
●
●
●
●
●
●
●● ●
●
●●
●
●
●
●
●● ●
●●
●●
●
●
●
● ● ●
●
●
●
●
●
●
●
● ●
●
●● ●
●
●
●
●
●
●
●
●
●
●
●
●
●
●
●
●
●
● ●
●
●
●
●
● ●●
●
●
●
●
●
●●●●
●
●
●
●●
●
●
●
●●
●●
●
●
●
●
●
●
●
●
●
●
●
●
● ●
●
●
●
●
●
●
●
●
●
●
●
●
●
●
●●●
●●●●
●
●
● ●
●
● ●
●●●
●●●
●●
●●●
●●
●
●●
●●
●
●
●
●●
●

●

●
●

●

●

●
●
●
●
●

●
●
●
●
●
●
●
●
●
●
●
●
●●
●
●
●
●
●
●
●
●
●
●
●
●
●
●
●
●
●
●
●
●
●
●
●●
●
●
●
●
●
●
●

●

●
●
●
●
●
●
●
●
●

●
●
●
●

●
●

●

● ●

●

●
●
●
●
●
●

●

●

●

●
●
●
●
●
●
●
●
●●
●
●
●
●●●

●

●
●

●
●

●
●
●

●

●

●

●

●

●

●

●●●

●
●●
●●●

●

●

●
●

●

●

●

●

●

●

●●

●
●●
●

●
●
●●

●

●

●

●

●

●

●
●
●

●
●
●
●●
●
●
●
●

●

●

●
●

●

●●
●
●●
●●
●
●●●
●
●●

●

●
●
●

●

●
● ●
●
●●
●●
●
●

●
●
●

●

●●●

●●●
●
●●

●●
●

●

●

●
●
●

●
●

●

●
●●

●●

●
●

●

● ●● ●●
●
●
●
●
●●
●

●

●

●●

●

●

●

●

●

● ●

●

●

●

●

●
●

●

●

●

●

●

●

●●●
● ●
●●
●●
●

● ●
●
●
●
● ●
●
●
●
●● ●
●● ●
●
●

●

●

●

●

●

●

●
●

●

●
●

●● ●

●
●

● ●

●
●

●
●

●

●
●

●

●

●

●

●

●
●●
●
●
● ●

●
●
●● ●● ●
●

●

●
●

●

●

●

●

●

●

●

●

●

● ●●●
●
●

●
●
●●
●
●

●

●
●
●

●●
●
●
●
● ●
●
●
●
●
●
●
●
●
●●
●●
●
●
●
●
●
●
●
●●
●●
●
●●
●
●
●●
●●
●
●●
●●
●●
●
● ●●●
●
●●
●
●

●
●

●

●

●
●

●

●

●

●

●●
●
●
●●
●
●
●
●
●
●

●

● ●
●
●
●

●●
●

●
●

●

●

●
●

●●

●

●
●
●

●

●
●
●

●

●
●
●●●

●

●

●

●●
●●●●●●
●
●●●

●

●
●

●

●

●
●
●
●
●●
● ●
●
●
●
●
●
●●
●
●
●
●
●
●
●
● ●
●
●
●
● ●
●
●
●
●
●●●
●
●
●●
●
●
●●
●
●
●●
●

●

●

●

●
●

●

●

●

●
●
●

●

●

●

●

●

●●
●
●●●●● ●
●●●
●
●
●
●
●
●

●
●●●
●

●●

●

●

●

●

●
●
●

●
●

●
●

●

●
●
●

●

●

●●

●●
●
●●●
●●●
●
●
●●
●
●

●●●
●●
●

●
●

●●●

●

●

●

●

●

●

●

●

●

●
●
●

●
●

●

●
●

●

●

●

●
●

●
●

●● ●●
●
●
●
●
●●
●●
●
●
● ●●
●●
●●●●
●●
●●
●
●
●●●
●
●
●
●
●
●●
●
●
●
●●
●

●●
●
●

●

●

●
●

●
●
●

●
●
●
●
●
●

●
●

●
●
●●
●
●
●
●
●●
●
●
●
●
●
●●
●
●● ●●
●
●
● ●
●●
●
●
●
●●
●●● ●●
●●●
●
●
●
●
●

● ●
●
●
●

●●●

●

●
●
●●
●
●
●
●●

●

●
●●
●
●
●●
●
●
●
●
●●●
●
●●●
● ●
●
●
●
●
●● ●
●●
●
●
●
●
●
●
●
●●
●
●
●

●●

●
●

●
●

●●

●
● ●●●●●
●
●

●●●

●

●

●

●●
●

●
●●
● ●
●
●
●
●
●
●

●
●
●●

●●●

●
●●

●●
●●

●
●

●
●
●
●
●

●●●
●●

●●

●
●

●●●

●●●
●●
●

●
●●

●
●

●
●

●

●

●

●
●

●

●

●●
●

●

●

●●

●
●

●

● ●
●
●

●
●
● ●

●
●

●

●
● ●

●
●

●
●

●

●
●
●
●
●●

●
●
●
●
●
●

●
●

●

●●
●

●
●

●
●
●

●

●
●

●
●

●●
●

●

●

● ●●

●
●

●

●

●
●

●●

●

●

●●

●

●●
●
●● ●

●

●

●

●

●
●

●

●
●
●●

●

●
● ●
●
●●
●
●
●●
●
●●
●
●

●

●

●

●

●

●
●
●●
●
●
●

●
●
●
●
●●

●●
●

●

●

●

●●
●

●
●
●
●
●
●
●
●

●
●
●
●●
●
●
●
●●
●
●●
●
●●
●
●
●
● ●●●
●
●
●
●●
●●
●
●
●●
●
●
●
●●
●
●●
●
●
● ●
●
●
●
●
●
●
●
●
●
●
●
●
● ●
●
●
●
●
●
●
●●
●
●●
●
●●
●
●
●●
●
●
●
●
●●
●
●
●
●
●
●
●
●
●
●
●
●●
●
●
● ●
●
●
●
●
●
●

●
●●●
●
●
●
●
●
●

●
●

●

●

●

●

●

●

●

●

●

●

●

●
●

●
●
●
●
●
●
●
●
●
●●
●
●
●
●
●●●
●●
●
●
●

●

●

●

●
●

●

●

●
●●

●

●
●
●
●
●
●

●

●●

●●●
●
●●●●●●
●●●
●●●
●
●
●
●●●
● ●
●
●●
●●●
●●
●●●
●
●
●
●●

●

●
●●
●●●

●

●●●

●

●

●

●

●

●

●●●

●
●

●

●

●

●

●
●

●●●
●
●
●
●
●●
●●●●●
●●
●●●
●
●
● ●
●
●●●
●●●

●
●

●●
●
●●●

●

●
●

●

●●

●
●●
●

●
●

●●
●
●
●
●
●
●
●

●
●●

●

●

●
●
●
●
●
●
●
●
●●
●
●
●
●
●●
●
●
●●
●
●
●
●
●
●
●
●
●●
●
●
●
●
●
●
● ●
●
●
●
●
●
●● ●
●
●●
●
●
●
●
●
●
●
●
●
●
●●
●
●
●
●
●
●●
●
●
●●
●
●
●
●
●
●
●
●
●
●●
●●
●
●
●
●
●
●
●
●
●
●
●
●●
●
●
●
●
●
●
●
●●●
●
●
●
●
●●
●
●●●
●
●
●
●
●
●
●●
●●
●
●
●
●
●
●
●
●
●
●
●
●●
●
●
●
●
●
●
●
● ●●
●●
●
●
●
●
●
●
●
●
●
●
●●
●
●
●
●●
●
●
●
●
●
●●●
●
●
●
●
●
●
●
●
●
●●
●●
●
●
●
●
●●
●
●
●●
●
●
●
●
●
●
●
●
●
●
●
● ●
●
●
●
● ●
●
●
●
●

●
●
●

●
●

●
●

●

●

●

●

●

●

●

●
●●
●
●
●

●

●

●●
●
●

●

● ●
●●
●
●
●● ●
●
●
●
●

●

●
●

●

●

●
●
●
●
●
●

●
●
●

●

●

●

●

●

●
● ●
●

●
●

●

●

●

●

●

●

●

●

●

●

●
●

●

●
●
●● ●
●
●
● ●

●
●
●

●
●

●
●

●
●

●

●

●

●

●
●
●

●

●

Weight

●

●

●
●

●

●

●
●

●

●●

●●
●●
●

●●●
●
●● ●

●

●
●
●
●●

●
●
●

●
●

●

●

●

●

●

●

●
●

●
●

●
●●

●
●
●
●

●
●
●
●
●
●
●
●●

●

●

●●
●

●●

●
●
●

●
●●

●
●
●
●

●
●

●
●●
●●
●
●
●
●
●
●
●
●
●
●
●
●
●
● ●
●
●
●
●
●
●
●●
●●
●
●●●
●
●●
●
●
●
●
●
●●
●
●
●
● ●
●
●
●●
●●●
●
●
●
●
●●
●●
●
●
●
●●● ●●
●●
●
●
●
●●
●●
●
●
●
●
●
●
●
●
●●
●
●●
●
●●
● ●
●
●
●●
●
●
●
●
●●
●
●
●
●
●
●
● ●
●
●
●
●
●●
●
●
●●
●
●
●
●
●
●
●
●
●
●●●
●●●
●
●
●
●
●
●
●
●
●
●
●
●
●
●
●●
●
●●●
●
●
●
●
●●
●
●●
●●
●
●
●
●
●
●
●
●● ●
●

●●
●
●●
●

●●
●

●
●

●

●●
●●

●
●
●
●

●

●
●

●
●
●●
●
●
●

●

●

●

●

●

●

●
●

●

●

●
●
●
●

●

●

●

●

●

●
●

●
●

●
●

●

●
●

●
●
●●
●
●●
●
●

●●●
●
●
●

●

●
●
●
●●
●
●

●

●
●●
●
●
●
●
●
●
●
●
●
●

●
●
●

●
●
●

●
●
●

●

●

●
●

●
●

●

●

●

●

●
●
●
●

●
●
●
●
●
●
●
●
●

●

●
●
●

●

●
●

●
●
●●
●

●
●
●
●

●
●
●
●
●
●
●●
●
●
●●

●
●
●
●
●●
●
●
●●
●
●
●
●
●
●
●
●
●
●
●
●
●
●
●
●
●
●
●
●
●
●
●
●
●
●
●●
●
●
●●
●
●
●
●
●
●
●
●
●
●
●
●
●
●
●
●
●
●
●
●
●
●
●
●
●
●
●
●●
●
●
●
●
●●
●●
●
●
●
●
●●
●
●
●
●
●
●
●
●●
●
●
●
●●
●
●
●●
●●
●
●
●
●
●●
●
●
●
●
●
●●
●
●
●
●●
●●
●
●
●●
●
●
●
●
●
●
●
●
●

●
●
●

●

●
●

●●

●

●
●

●

●
●●

●

●
●

●
●
● ●●●●●
●
●●●
●
●●
●

●●

●
●

●●●

●●
●
●

●

●

●●
●
●●●

●●

●●●

●

●

●●●

●
●
●

●

●

●
●

●

●

●

●

●●
●
●
●

●

●

MPG

●

●
●

●
●
●
●
●
●
●
●
●
●
●●
●
●
●
●
●
●
●
●
●
●
●
●
●
●
●
●
●
●
●●
●
● ●●
●
●
●
●
●
●
●●
●
●
●
●
●
●
●
●
●

●
●

●●
●
●
●●●

●

●
●

●
●

●●●

●

●

●
●

●
●
●
●

●
●
●
●
●
●
●
●
●
●
●●

●
●
●●

●●

●

●

●

●●
●
●●●
●
●
●
●●
●
●
●
●
●●
●

●
●
●

●●●

●

●

●
●

0
0
0
0
5
1

0
0
0
0
5

0
0
5

0
0
4

0
0
3

0
0
2

0
0
1

0
0
0
6

0
0
0
4

0
0
0
2

50000

150000

100

200

300

400

500

2000

4000

6000

Fig. 2.12. A full scatterplot matrix for 5 variables from the cars dataset.

projection of 3-D data, which gets its pseudo three-dimensionality only
by the “motion” of the rotation. The Grand Tour as introduced by Asimov
(1985) generalizes the idea of a 3-D rotating plot to an arbitrary number
of dimensions. It is deﬁned as:

A continuous 1-parameter family of d-dimensional projections of
p-dimensional data which is dense in the set of all d-dimensional
projections in IRp. The parameter is usually thought of as time.

For a 3-D rotating plot, the parameter p equals 3 and the parameter d
equals 2. In contrast with the 3-D rotating plot, the Grand Tour does not
have rotational controls, but uses successive randomly selected projec-
tions. Figure 2.13 shows an example of 3 successive planes P 1, P 2, and
P 3 in three dimensions. The planes between the randomly selected base
planes are interpolated to get a smooth pseudo-rotation, which is compa-
rable to a 3-D rotation. A sample projection plane is plotted for the ﬁfth
intermediate projection between planes P 2 and P 3. A more technical de-
scription of the Grand Tour can be found in Buja et al. (1996). Although
the human eye is not well trained to recognize rotations in more than
three dimensions, the Grand Tour can help to ﬁnd structures like groups,
gaps, and dependencies in the data.

2.3 Plots for Continuous Data

41

P1

P3

P2

Fig. 2.13. Sample path of a Grand Tour. The three base frames P 1 to P 3 are
interpolated by intermediate projection planes to generate a smooth transition.

Parallel Coordinates

Whereas scatterplots, 3-D rotating plots, and the Grand Tour all rely on
orthogonal axes, parallel coordinates draw all variables in parallel, i.e.
side by side. Every observation is then plotted for each axis/variable, and
a connecting line is drawn for each observation between all the axes. This
plotting technique was ﬁrst published by Inselberg (1985). Figure 2.14
shows an example of a single observation xi plotted in parallel coordi-
nates.

(cid:2)
(cid:2)
(cid:2)

xi1

(cid:2)

(cid:2)

(cid:2)

(cid:2)

(cid:2)

(cid:2)

(cid:2)

(cid:2)(cid:3)(cid:3)(cid:3)(cid:3)(cid:3)

(cid:2)

(cid:2)

xi3

(cid:2)
(cid:4)

xi2

(cid:4)

(cid:4)

(cid:4)
(cid:4)
(cid:2)
xi4

(cid:2)
xip

(cid:3)(cid:3)(cid:3)(cid:3)(cid:3)

(cid:2)
· · ·
xip−1

· · ·

X1

X2

X3

X4

Xp−1

Xp

Fig. 2.14. Observation xi = (xi1, xi2, xi3, ..., xip−1, xip)T plotted in parallel coordi-
nates.

42

2 Statistical Graphics

Fig. 2.15. How lines in two dimensions translate into parallel coordinates.

Parallel coordinate plots have several interesting geometrical proper-
ties that are more interesting for mathematicians than for statisticians.
The most important property in this sense is the point line duality, i.e.,
a line in two dimensions translates into a single point in parallel coordi-
nates. Figure 2.15 shows how points on lines with positive and negative
slopes translate into parallel coordinates. In both cases, all lines inter-
sect in a single point. If the slope is negative, the point lies between the
two parallel axes; if the slope is positive, the point lies outside the par-
allel axes. This property in two dimensions can be translated into higher
dimensions as well, to deﬁne hyperplanes.

Applications in visualization for data analysis look at features like
gaps, groups, and outliers within the multivariate display of a parallel
coordinate plot. Parallel coordinate plots are particularly good for iden-
tifying points that are outliers on individual variables and inspecting
their properties. Finding multivariate outliers that are not outliers on
any individual variables is much more difﬁcult. Figure 2.16 gives four
examples of how clusters in two and three dimensions translate into fea-
tures in parallel coordinates. All the clusters in Figure 2.16 can be seen
in one- or two-dimensional views, i.e., scatterplots. The advantage of par-
allel coordinate plots is to trace these features through many variables
simultaneously, which is almost impossible with lower dimensional plots.
Figure 2.17 shows ﬁve variables of the Cars2004 dataset. All ﬁve vari-
ables are highly correlated. Negative correlations — e.g., mpg and engine
size — show up in many crossings of the connecting lines. High positive
correlations show up in many almost parallel lines — e.g., retail price and
weight.

y

y

2.3 Plots for Continuous Data

43

y

x

x

y

x

x

y

y

z

x

x

x

y

x

y

z

Fig. 2.16. How groups can be identiﬁed in parallel coordinates.

Engine Size (liters)

Suggested Retail Price (USD)

Highway Miles Per Gallon

Horsepower

Weight (Pounds)

Fig. 2.17. A parallel coordinate plot for the ﬁve variables of the Cars2004 dataset
in Figure 2.12. All 4-cylinder cars are highlighted.

44

2 Statistical Graphics

2.4 Data on Mixed Scales

The last two sections dealt with either purely categorical or purely con-
tinuous data. When plotting data on mixed scales, trellis displays2 have
proven useful. Trellis Displays use a grid-like arrangement to place plots
on the component panels. Each plot in a trellis display is conditioned upon
at least one other variable. The biggest advantage of trellis displays is
the common scale for all plot panels. This allows effective comparisons
of the panel plots. A simple example of a trellis display can be seen in
Figure 2.18.

Figure 2.18 shows a boxplot of miles per gallon by number of cylin-
ders. Mileage can easily be compared between classes, because the scale
does not change when visually traversing the different subjects. At this
point, it is very important to note the difference between boxplots y by x
and parallel boxplots. Whereas the latter plots a boxplot for all cases for
every variable, boxplots y by x plot conditional boxplots for each group of
the conditioning variable, i.e., each observation is only plotted once. Trel-
lis displays are most powerful when up to two conditioning variables and
more complex panel plots are used. The panel plot can be any arbitrary
plot. Often ﬁtted models are superimposed. Figure 2.19 shows an exam-
ple of a trellis display for Income vs. Working Hours for the US Census
dataset. The panel plots are conditioned for US Regions and Marital Sta-
tus. Each scatterplot has a local regression smoother superimposed along
with the local 95% conﬁdence bands. The plot shows that Income grows
with Working Hours and usually has a maximum at just over 60 hours.
Highest incomes can be found for married people in the Northeast.

60

50

40

30

20

(cid:2)

3

(cid:2)(cid:2)

(cid:2)

(cid:2)
(cid:2)(cid:2)

(cid:2)

4

(cid:2)

5

(cid:2)(cid:2)

(cid:2)

6

(cid:2)(cid:2)

8

(cid:2)(cid:2)

12

Fig. 2.18. Boxplot MPG by Cylinder as simple form of a trellis display.

2 Trellis displays are called lattice graphics within the R package

2.4 Data on Mixed Scales

45

0

20 40 60 80

0

20 40 60 80

West
Divorced

West
Married

West
Never married

West
Separated

West
Widowed

South
Divorced

South
Married

South
Never married

South
Separated

South
Widowed

North East
Divorced

North East
Married

North East
Never married

North East
Separated

North East
Widowed

Midwest
Divorced

Midwest
Married

Midwest
Never married

Midwest
Separated

Midwest
Widowed

80000

60000

40000

20000

80000

60000

40000

20000

80000

60000

40000

20000

e
m
o
c
n

I

80000

60000

40000

20000

0

20 40 60 80

0

20 40 60 80

Working Hours

0

20 40 60 80

Fig. 2.19. A trellis display showing scatterplots for Income vs. Working Hours
conditioned by Region and Marital Status for the Census data. Each plot panel
has a local regression smoother superimposed. Conﬁdence bands have been added
to illustrate the variability of the estimate.

One problem with trellis displays is the fact that it is hard to judge the
number of cases in a panel plot. For example, in Figure 2.19, the number
of observations in the plot panels ranges from 328 to more than 10,000.
When groups are smaller, it is essential to have indicators like conﬁdence
bands for scatterplot smoothers in order to judge the variability of an
estimate, which is usually deﬁned by the size of the underlying sample.

Another problem with trellis displays is the method of shingling. Shin-
gling is used when a conditioning variable is not categorical but continu-
ous. Shingling a continuous variable means to discretize the variable into
a number of overlapping categories or intervals. If this is done automati-
cally without any control and insight, the resulting categories can be hard
to interpret and may even mislead.

46

2 Statistical Graphics

Divorced

Married

Never married

Separated

Widowed

t
s
e
W

h
t
u
o
S

t
s
a
E
h
t
r
o
N

t
s
e
w
d
M

i

female

male

female

male

female

male

female

male

female

male

Fig. 2.20. A multiple barchart plot for the variables Marital Status, Region, and
Gender for the US Census data. The distribution of Gender clearly only depends
on marital status and seems to be independent of region.

Trellis displays and mosaic plots share the fact that data are plotted
conditioned to a speciﬁc sequence of variables. Both plots use rectangu-
lar layouts to do so. Whereas mosaic plots are deﬁned recursively within a
two-dimensional rectangular region and can accommodate — at least the-
oretically — an arbitrary number of dimensions, trellis displays arrange
plots in a hypercube-like layout. When looking at only two conditioning
variables, the two plot types are quite similar. Typical modiﬁcations of
mosaic plots use equal space for each cell. These modiﬁcations are same
binsize, ﬂuctuation diagrams, and multiple barcharts. These variations
are described in Section 5.4.

Figure 2.20 shows an example of a modiﬁed mosaic plot for the vari-
ables Marital Status, Region, and Gender for the Census data. The panels
are conditioned in the same way as in Figure 2.19, the “panel plot” is a
barchart for gender. Obviously the similarity of trellis displays and mo-
saic plots is limited to the special case where there are two conditioning

2.5 Maps

47

variables and categorical panel variables displayed in equally sized cells.
This can be seen when adding a third variable to the examples in Figures
2.19 and 2.20. Adding a third conditioning variable to the trellis display
will result in different pages for each level of the third conditioning vari-
able. This is very similar to the way data cubes in OLAP (OnLine Analytic
Processing) systems are arranged, respectively aggregated. In contrast,
the mosaic plot is a recursively conditioned plot, i.e., a third variable will
be introduced conditioned on the ﬁrst two variables.

2.5 Maps

Maps form another special case in statistical graphics. Whenever there
exists a geographical reference for a dataset, it is informative to be able to
visualize the geographical reference together with the “non-geographical”
parts of the data. Standard approaches display the statistical information
on the map using glyphs or colours and are useful for presentation pur-
poses. Interactive approaches linking geographic and statistical displays
are better for exploratory purposes. Maps do not substantially abstract
geographical information, as they usually use the same geometric rep-
resentation of areas just on a smaller scale. Plotting geographical infor-
mation opens up the whole area of cartography, which cannot be covered
in this book. For a comprehensive overview of cartography issues refer
to Kraak and Ormeling (1996). A wide array of geovisualization topics is
covered in Dykes, MacEachren and Kraak (2005).

Maps with colour-shadings to represent quantities are called choro-
pleth maps. Figure 2.21 gives four examples of choropleth maps. For each
of the four plots, the median household income is plotted for all coun-
ties in the east of the United States. The upper left plot uses a linear
gray scale for all values, i.e. the smallest value is assigned “white” and
the largest value is assigned “black”, and all other values are linearly in-
terpolated between black and white. The same assignment method has
been used for the upper right plot, except that the values now range from
light yellow to dark red. The linear assignment has been changed to an
equal probability scheme in the lower left plot, i.e. the colour shades have
been assigned linearly to the ranks of the income values. The lower right
plot shows additional highlighting for counties with a high proportion of
young children. Obviously great care must be taken when using colours
for plotting the map as well as for highlighting. A discussion of an interac-
tive assignment of gray scale values in the context of mosaic plots can be
found in Section 5.4.4. The use of choropleth maps as linked micromaps
is discussed in Carr et al. (1998) and Carr et al. (2002).

For a discussion of the statistical exploration of geographical data, see

Theus (2002a) and Dykes et al. (2005, Chap. 6).

48

2 Statistical Graphics

Fig. 2.21. Four choropleth maps for the east-coast counties of the US, showing
the median household income per county: (a) upper left: linear gray shading; (b)
upper right: linear colour scale using values from light yellow to dark red; (c)
lower left: equal probability colour scale; (d) lower right: equal probability scale
with additional highlighting of areas with 8 or more percent of children under 5.

2.6 Contour Plots and Image Maps

49

Maunga Whau Volcano

Maunga Whau Volcano

0
0
6

0
0
5

0
0
4

0
0
3

0
0
2

0
0
1

0
0
6

0
0
5

0
0
4

0
0
3

0
0
2

0
0
1

100

200

300

400

500

600

700

800

100

200

300

400

500

600

700

800

Fig. 2.22. Left: A contour plot for the altitude at Maunga Whau volcano in Hawaii.
Right: the same data shown in an image map.

2.6 Contour Plots and Image Maps

Contour plots inherit features from both scatterplots and maps. Usually,
three continuous variables are displayed in a contour plot. Two variables
for the x-axis and the y-axis, and for the third variable z, contours are es-
timated and plotted. Estimating contours is not trivial and can lead to ar-
tifacts whenever extremes slopes occur in the data. In non-extreme cases,
most algorithms give very similar and comparable results. An overview
of contouring and surface displays can be found in the Appendix of Scott
(1992).

The most natural use of contour plots is to actually map geograph-
ical altitude via a sample of altitude measures at given longitudes and
latitudes. Figure 2.22 (left) shows an example of a contour plot for the
Maunga Whau volcano in Hawaii. The different contour-lines3, i.e., in
this case lines depicting equal altitude, are annotated. Figure 2.22 (right)
shows the same data in an image map. In an image map, areas in the
same range share the same colour. Depending on the application, differ-
ent colour ranges are used. The colour scheme used in Figure 2.22, from
green, via yellow, and brown to white, is typical for plotting altitudes.
Temperatures are usually depicted by a range from blue (cold) to red (hot).
Thus, image maps are also often called heat maps. But contour plots also
have an application closer to the statistics domain. They can be regarded
as the two-dimensional generalization of a density estimator as described
in Section 2.3.1 and Section 3.5. Obviously, a two-dimensional density es-
timator has to cope with the same problems as its one-dimensional coun-
terpart. Features like gaps, or accumulations are hard to preserve for
an estimator that tries to calculate a smooth result. If the data follow a
non-pathological distribution, a contour plot can be a good approximation

3 Contour-lines are often also called iso-lines, as values along these lines share

the same value.

50

2 Statistical Graphics

(cid:2)

(cid:2)
(cid:2)

(cid:2)

G
P
M

0
6

0
5

0
4

0
3

0
2

0
1

(cid:2)

(cid:2)

(cid:2)

(cid:2)

(cid:2)

(cid:2)

(cid:2)(cid:2)(cid:2)
(cid:2)
(cid:2)(cid:2)(cid:2)
(cid:2)
(cid:2)
(cid:2)(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)(cid:2)(cid:2)(cid:2)(cid:2)
(cid:2)(cid:2)
(cid:2)
(cid:2)(cid:2)(cid:2)
(cid:2)(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)(cid:2)
(cid:2)
(cid:2)(cid:2)(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2) (cid:2)(cid:2)(cid:2)
(cid:2)(cid:2)
(cid:2)(cid:2)(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)

(cid:2)(cid:2)

(cid:2)

(cid:2)
(cid:2)

(cid:2)(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)(cid:2)
(cid:2)
(cid:2)(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2) (cid:2)
(cid:2)
(cid:2)(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)(cid:2)(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)(cid:2)
(cid:2)
(cid:2)
(cid:2)(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)(cid:2)
(cid:2)(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)(cid:2)
(cid:2)
(cid:2)(cid:2)
(cid:2)
(cid:2)(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)(cid:2)(cid:2)
(cid:2)
(cid:2)
(cid:2)(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2) (cid:2)
(cid:2)
(cid:2)(cid:2)
(cid:2)(cid:2)
(cid:2)(cid:2)(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)(cid:2)(cid:2)
(cid:2)
(cid:2)(cid:2)
(cid:2)(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)(cid:2) (cid:2)
(cid:2) (cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)(cid:2)
(cid:2)(cid:2)(cid:2)
(cid:2)
(cid:2)
(cid:2)(cid:2) (cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)(cid:2)
(cid:2)(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)(cid:2)
(cid:2)
(cid:2)(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2) (cid:2)(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2) (cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)

(cid:2)
(cid:2)
(cid:2)
(cid:2)

(cid:2)

(cid:2)

(cid:2)

0
6

0
5

0
4

0
3

0
2

G
P
M

(cid:2)

(cid:2)

(cid:2)
(cid:2)
(cid:2)
(cid:2)

(cid:2)

(cid:2)

(cid:2)

(cid:2)
(cid:2)

(cid:2)

(cid:2)
(cid:2)

(cid:2)
(cid:2)
(cid:2)

(cid:2)
(cid:2)

(cid:2)
(cid:2)

(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)(cid:2) (cid:2)
(cid:2) (cid:2)
(cid:2)

2000

3000

4000

5000

6000

2000

3000

4000

5000

6000

Weight

Weight

Fig. 2.23. Left: A scatterplot of MPG vs. Weight of the Cars2004 dataset. Right: A
contour plot for the density of the joint distribution of Weight and MPG.

of the two-dimensional distribution. In Figure 2.23 (left), the variables
Weight and MPG of the cars data are plotted in a scatterplot. The right
plot in Figure 2.23 shows the density contours along with an image plot
in gray scales. The outliers with high gas mileage are almost invisible
in this colour mapping. Similar estimates can be generated using tonal
highlighting and α-blending as discussed in Section 3.5. For a deeper and
more elaborate discussion of density estimators in more than two dimen-
sions, consult Scott (1992).

2.7 Time Series Plots

From a technical point of view, time series plots have a lot in common with
scatterplots. In a time series plot, the x-axis is always set to be time, and
the y-axis is the observed variable. Often it can be reasonably assumed
that measurements could be taken at any arbitrary point of time, and so
the points are connected by lines. Despite their similarity with scatter-
plots, time series plots are quite different in application. When looking at
more than one time series, it is essential to overplot and rescale time se-
ries plots for efﬁcient comparison. No matter how you look at time series
data, the x-axis always represents time. This holds true for time series
as well as for components of time series. Thus, many of the issues related
to scatterplots, such as masking of structure through overplotting or den-
sity estimations, are meaningless for time series plots. Figure 2.24 shows
a typical example of a time series plot. Four major stock indices are plot-
ted for the 1990s. For a better comparison, all series are plotted in the
same coordinate system, all aligned at the same time axis. Depending on
the application, the scaling of the y-axis is modiﬁed. In the case of ﬁnan-
cial time series as in Figure 2.24, series are often normalized at 100% for

2.8 Structure Plots

51

DAX
SMI
CAC
FTSE

0
0
0
8

0
0
0
6

0
0
0
4

0
0
0
2

0

1992

1993

1994

1995

Time

1996

1997

1998

Fig. 2.24. A time series plot for four major stock indices for the 1990s.

a start of a particular time interval. Due to the many different and very
speciﬁc applications in which time series plots are used, this topic is not
discussed in this book. For further reading, refer to Wilkinson (2005) and
Hochheiser and Shneiderman (2004).

2.8 Structure Plots

Structure plots depict properties of a whole dataset in a single plot. It is
usually assumed that the dataset is a rectangular matrix with k columns
and n rows — which is not necessarily true with complex datasets, but
can often be achieved by transformations for at least a reasonable subset
of the data. Depending on which structure is of interest, different kinds
of structure plots can be used.

Tableplots

Tableplots try to capture the information of the complete dataset in a sin-
gle plot. They use a spreadsheet-like layout of the data. Figure 2.25 shows
an example of such a tableplot for the ﬁrst 12 variables of the US Census
dataset. In this plot, the data are presented in a table-like layout. Each
column represents a variable, and each row is an aggregation of 250 cases.
The data have been sorted according to Age. Each line shows the sum-
mary for the 250 aggregated values. For a continuous variable, the mean
value is shown by a horizontal bar of corresponding size (cf. variable Age).
For categorical variables, a horizontal bar is shown, which is subdivided
according to the proportion of cases within the particular aggregation

52

2 Statistical Graphics

Fig. 2.25. A tableplot of the US Census dataset for the ﬁrst 12 variables.

group (cf. variable Sex). Querying the graphics shows that the proportion
of females is higher for both younger and older groups in the dataset.
Almost all other variables in the plot show a strong interaction with
Age, as for instance Marital Status does. Figure 2.25 was generated us-
ing the GAUGUIN software (http://www.rosuda.org/gauguin). Obvi-
ously, the aggregation mechanism guarantees that no matter how many
cases are looked at, it is always possible to get an overview of all cases
at once. Whereas only technical limits arise for the number of cases, the
number of variables is still limited to the number of columns, which can
be displayed — usually some dozens.

A similar approach can be found in the TableLens software (Rao and

Card; 1994).

Missing Value Plot

Missing value plots focus on just a single attribute of the data: whether
a value was recorded or not. Figure 2.26 (left) shows a missing value plot
for ultrasound measurements and the birthweight of babies. In a missing
value plot, a bar is drawn for each variable, which is divided into the
proportion of missing and non-missing values. In the left-hand plot in
Figure 2.26, we see that about 10% of the values of each of the ultrasound
variables are missing and no cases have missings for the variable Weight.
In the right-hand plot, the missings of the measurement BIP are selected.
The highlighting shows that almost all of the missings in BIP are also
missing in the other two measurements. Only a few values are missing at
only one of the variables. There are no missings for birthweight itself.

2.8 Structure Plots

53

Weight

THQ

FL

BIP

Weight

THQ

FL

BIP

Fig. 2.26. A missing value plot for the ultrasound dataset (left). All cases with
missing values in BIP are selected (right).

When missing value plots can be sorted according to the absolute num-
ber of missings in each variable, a check for monotone missingness can
be easily performed. Stepwise selection of the missings from the smallest
missing group to the biggest will show whether the selected missings are
included in all successive variables. Monotone missingness is not only an
interesting structural feature of the data but also makes a possible impu-
tation of the missing values more effective.

From Figure 2.27 you can see that question 3 was the least popular
and questions 2 and 4 the most popular. For most questions, the probabil-
ity of passing the exam does not change too much, depending on whether
a student did answer a question or not. Not so for question 7, where there
is a probability of passing the exam of almost 70% for students who de-
cided to take question 7 and a probability of only about 15% of passing
for those who did not attempt the question. Question 6 shows the inverse
interaction. This question was among the unpopular ones, and students
who decided not to answer it had a higher probability of passing than
those who did answer it.

Q1s

Q3s

Q5s

Q7s

Q2s

Q4s

Q6s

Q8s

Fig. 2.27. A missing value plot for the exams dataset. Students who passed the
exam are highlighted.

54

2 Statistical Graphics

Q1s

Q2s

Q3s

Q4s

Q5s

Q6s

Q7s

Q8s

Fig. 2.28. The same data as in Figure 2.27 with optimized aspect ratio.

In this setting, it is easiest to judge the absolute sizes of the overall
and highlighted groups. In Figure 2.27, the highlighting direction is cho-
sen to be orthogonal to the primary discrimination between missing and
non-missing. In doing so, it is possible to compare the highlighted propor-
tions between missings and non-missings much more easily. To make the
interaction between missing and non-missing and passed and failed bet-
ter visible, the aspect ratio of the boxes can be adjusted to be 1 as shown
in Figure 2.28. The importance of choosing the right layout and ordering
of mosaic plots is discussed in Chapter 5.

3

Scaling Up Graphics

Martin Theus

This high man, aiming at a million.

Robert Browning, A Grammarian’s Funeral

3.1 Introduction

This chapter investigates what inﬂuence the size of a dataset has on stan-
dard statistical graphics. Area plots like barcharts, histograms, and mo-
saic plots are relatively invariant against the increasing size of a dataset.
Point plots, all plots that plot a glyph for each observation, have to cope
with the problem of overplotting and an increasing number of extreme
outliers. The deﬁnitions of some other plots, for instance boxplots, are ex-
amined to see if they still seem to be appropriate when datasets get really
large. Problems, solutions, and modiﬁcations are presented, which are ei-
ther based on more interactivity or on advanced plotting techniques.

3.2 Upscaling as a General Problem in Statistics

Jerome Friedman (2001) quoted his former boss Chuck Dickens at SLAC
(Stanford Linear Acceleration Center), “Every time computing power in-
creases by a factor of ten, we should totally rethink how and what we
compute.” Friedman applied the same idea to the size of datasets writing:
“Every time the amount of data increases by a factor of 10, we should
totally rethink how we analyze it.” But unlike other disciplines, statis-
tics is not very adaptive. It does not take long to ﬁnd out that a χ2-test
will always give a signiﬁcant result if only the sample is big enough, or
vice versa, given a big enough dataset, there is no interaction between
two categorical variables that is not signiﬁcant. Unfortunately, most text-
books use examples of only a limited size. This upscaling problem can be
found for many mathematical statistical tests, questioning the relevance
of much of the statistical theory developed during the past century for

56

3 Scaling Up Graphics

problems that are not of small size. This problem has become more press-
ing recently, as the increasing sizes of datasets are linked to the increas-
ing capacity of databases and to increases in computer power in general.
At ﬁrst sight, statistical graphics might seem to be relatively robust
to the scale of a dataset, but this is not true for many statistical graphics.
Whereas area-based plots for categorical data scale up quite well, most
statistical graphics for continuous data suffer badly when the number of
plotted entities is large. For large datasets, these plots have to be modiﬁed
or new plots have to be introduced.

Computer scientists working in the ﬁeld of Data Mining — mostly
coming from an information visualization perspective — have introduced
new, specialized plots for visualizing massive datasets. Most statistical
plots are not as specialized and are more generally applicable to a broader
range of problems.

3.3 Area Plots

Area plots usually depict counts, i.e., a statistical summary of the data.
Looking at a barchart, it is hard to ﬁnd out whether the underlying sam-
ple was of size 100 or 10 million. The picture itself might look the same.
The “only” thing that is affected is the interpretation of what can be seen.
Small variations in the heights of the bars will be a weak hint for differ-
ences between the categories, if the sample is small. For a larger sample,
small variations might be highly signiﬁcant and clear evidence of a dif-
ference. Nonetheless, for large datasets almost any visible difference will
be signiﬁcant, regardless of its relevance.

Although histograms look different from barcharts (or they should,
some users and some software packages mix up the two ideas very casu-
ally1), they serve a very similar purpose: depicting the counts of raw data.
Barcharts can do this without any approximation, whereas histograms
are approximations of the distribution of the data.

Mosaic plots break the barrier of dimensionality and depict several
categorical variables at a time. The areas in mosaic plots are strictly pro-
portional to the numbers of observations in the corresponding combina-
tions of categories.

The next sections will take a closer look at the three major plots based
on areas and show which problems arise with very large datasets and
which additions might be needed to handle large datasets more effec-
tively.

1 Barcharts show counts for distinct classes of categorical data, whereas his-
tograms depict a breakdown over a continuous interval of real valued numbers.

3.3 Area Plots

57

3.3.1 Histograms

Changing the anchorpoint and binwidth of a histogram can often uncover
special structure in the dataset — gaps, thresholds, or discretizations.
Because large datasets are often made up of data from several different
sources, it is likely that different resolutions will be appropriate for differ-
ent parts of the dataset. No one display is going to reveal all that might
be found, and interactive controls are valuable for exploring different al-
ternatives. It is necessary, however, to respect any structure in the data.
The variable age from the US Census Data is only given in years and
binwidths of 1.34 or 0.86 would both be meaningless and misleading.

Figure 3.1 shows a sequence of 9 histograms with binwidths of 2, 4,
and 6 and anchorpoints 0, −1, and −2 for the distribution of Age in the
US Census dataset. All the histograms here convey roughly the same in-
formation, though the dip due to the war years is not apparent in the
displays on the right.

The histograms with binwidth 2 show an increase for the interval
[90, 92), which is due to rounding the age of all respondents of the study
older than 90 down to 90. This artefact in the data can only be seen if the
binwidth is set to be small enough and is a typical example of things one
might ﬁnd in a large dataset. Most rules to determine the number of bins
in a histogram do not give sensible results for large datasets and cannot
take account of any special structure (e.g., discretizations).

0

0

0

90

0

90

0

90

0

90

0

90

0

90

0

90

90

90

Fig. 3.1. A series of histograms of the variable Age of the US Census data with
binwidths 2, 4, and 6 (left to right) and anchorpoints 0, -1, and -2 (top to bottom).

58

3 Scaling Up Graphics

Fig. 3.2. A histogram of logged amount of 450,000 bank deals. Small bars are
invisible due to the big differences in cell counts.

With large datasets, histograms also have to cope with very big differ-
ences in the bar counts, which often make small bars (almost) invisible.
Figure 3.2 shows an example of a histogram of logged amounts of 450,000
bank deals. At both ends of the histogram there are bins with very small
numbers of cases.

Special plotting techniques have to deal with this problem. One so-
lution is to redmark the bins, as in Figure 3.2 (for redmarking see also
Section 4.3.7). Another solution is to always assign bars a minimum size
of a single pixel, which might lead to slightly incorrect binsizes, but en-
sures that information is not invisible.

3.3.2 Barcharts

In a barchart, the relative sizes of category bars do not depend on the
sample size of the dataset. Consequently, it is hard to draw the right con-
clusions, not knowing the amount of data involved.

Approximate conﬁdence intervals for bar heights, say based on a Pois-
son model, would give some guidance, but as datasets get bigger and big-
ger these intervals would become smaller and smaller till they ﬁnally
degenerate and are no help at all. A 95% conﬁdence interval for 100 cases
represented by a bar of height 100 pixels would have a height of 40 pixels,
and the corresponding interval for a bar of 100,000 cases would only take
up 1 pixel.

In general, three kinds of categorical variables can be distinguished:

3.3 Area Plots

59

Fig. 3.3. A barchart with more
than 4,500 categories.

• Fixed

The ﬁrst class is the class of vari-
ables with a ﬁxed number of categories
no matter how big the dataset gets.
For example, variables like Gender, US
State, Continent, or Blood-Group have
an a priori known number of cate-
gories.

• A-priori Limits

The second class are discrete vari-
ables, where the number of categories
to be observed is not known a pri-
ori, though limits can still be esti-
mated. This class includes variables
like Make of Car or Native Coun-
try.

• No Known Limits

The third class is the class of variables
with a number of categories, which
grows with the number n of observed
cases. This class includes variables like
Company Employed, Native City, or Fa-
vorite Beer.

Obviously, the ﬁrst two classes cause no
special problem when datasets get very
large, but the third does. Barcharts with
dozens or even hundreds of categories need
special
interactive support to allow the
user to navigate through the categories.
These interactive functions comprise:
• Ordering

– by Frequency
– by Name
– by Highlighting
relative
absolute

·
·

– manually

• Grouping

60

3 Scaling Up Graphics

These options will be discussed in more detail for barcharts and mosaic
plots in Chapter 5 using the Internet Usage dataset.

To cope with many categories, a ﬁrst step is to plot the bars horizon-
tally rather than vertically. This permits printing most labels in full —
which is important for a successful identiﬁcation of the bars. A second
step is to allow scrolling in barcharts. Figure 3.3 shows part of a barchart
of the number of hits of ﬁles of a web server. This barchart has well over
4,500 categories, which can be easily investigated in a horizontal bars
layout, using sorting options and scrolling. The barchart was reversely
sorted by frequency. In such a situation, it is almost impossible to ﬁnd a
speciﬁc category without sorting options.

For even more categories (> 1,000), Eick and Karr (2002) show an
implementation of logical zooming in barcharts. In a global view of the
barchart, the bars are plotted with a minimal width of a single pixel. If
there are more bars than pixels, adjacent bars must be joined to accom-
modate all categories in a single view. Zooming in widens the bars more
and more until the usual barchart view appears again. This technique
is most effective when the bars are sorted according to absolute size to
achieve a structured plot of the information.

Section 4.4.3 presents further details on zooming issues for a variety

of plots.

3.3.3 Mosaic Plots

Mosaic plots display categories or crossings of categories of categorical
data using tiles rather than bars. The areas of the tiles of a mosaic plot
are proportional to the numbers of cases in the corresponding groups.
Barcharts with very many categories can be made scrollable and sort-
ing and regrouping can support more detailed investigation. Mosaic plots
usually use a ﬁxed window size, which is then subdivided recursively into
the different tiles. Sorting, grouping, and zooming are all important.

Scaling problems in mosaic plots arise as the number of tiles becomes
larger. Plots with about 50 to 100 tiles are usually still easy to interpret,
though, as always, this depends on how much structure there is in the
data. Basically there are two reasons why the number of tiles becomes
large. Neither is speciﬁc to large datasets, but both are more common
with large datasets.

The ﬁrst reason arises when the variables being combined have many
categories. As long as there are only two variables, the matrix-like struc-
ture of the mosaic plot is not difﬁcult to read, even if there are dozens
of categories. Adding a third or fourth variable will tend to overload the
plot.

The second reason is due to including many variables. The number
of tiles grows exponentially with the number of variables in the plot.
As known from high-dimensional data analysis, points become more and

3.3 Area Plots

61

Zoom St ep 1

Zoom St ep 2

Fig. 3.4. Logical zoom example in a mosaic plot.

more sparse the more dimensions are considered. With categorical data
this means that more and more empty intersections of categories are ob-
served. Even in a very large census dataset, no observations are expected
to fall in the category of females with a doctoral degree, below the age
of 20, having 3 or more children, and earning less than $20,000 a year.
Interestingly, large numbers of empty cells may be beneﬁcial, if clusters
of data stand out better.

There are two options for dealing with very many tiles in a mosaic plot.
Either the plot is made scrollable or zooming functionality is added. Both
options need additional navigational help. In a scrollable mosaic plot, it
would not be possible to get a full view of the mosaic plot as a whole. When
zooming into a mosaic plot, the user is likely to lose the context of where
he or she was focusing on. Both solutions can beneﬁt from an overview
window or bird’s eye view to give orientation as long as the zoom factor
does not get too large.

This leads to the concept of logical zooming in mosaic plots. To avoid
clutter in a mosaic plot, a maximum number of cells to be plotted can be
deﬁned. The recursion stops if the number of cells would exceed this max-
imum. Thus, not all variables might be included in the plot. The user then
may select a category in the ﬁrst variable and zoom in on this category.
In the zoomed view, the next variable, which was not included at the end
of the recursion due to the stopping criterion, is then included. This can
be repeated until all variables are included. A separate overview window,
containing only the conditioned variables, shows the current zoom loca-
tion to guide the user.

Figure 3.4 shows a simple example of how logical zooming in mosaic

plots looks. (For logical zooming, see also Section 4.4.3.)

62

3 Scaling Up Graphics

3.4 Point Plots

Point plots all suffer from the problem of trying to depict every single
observation with its own glyph.2 For scatterplots and parallel coordinate
plots, this is obvious. Although boxplots do not plot a glyph for every case,
the number of glyphs to plot is still a linear function of the number of
cases n, because outliers are individually plotted, as discussed in the next
section.

Plotting too many glyphs usually results in meaningless black areas,
due to overplotting. This effect is quite similar to an overloaded signal
that is then clipped. The black area corresponds to the maximum signal
level. To avoid clipping, the overall level has to be turned down. This prin-
ciple can be applied to plots by using tonal highlighting or α-blending.
Both methods reduce the weight of a single observation and offer a rudi-
mentary density estimation of the data. These methods will be introduced
in Section 3.5.

3.4.1 Boxplots

Being based on robust data summaries (i.e., median, upper, and lower
hinges, and upper and lower inner and outer fences), boxplots might be
assumed to be insensitive to increasing dataset sizes. This holds true for
the summary statistics, but not for the outliers. A case xi is an outlier in
a boxplot when

xi < x0.25 − 1.5 × (x0.75 − x0.25)

or

xi > x0.75 + 1.5 × (x0.75 − x0.25).

(3.1)

(3.2)

(Note that the 0.25- and 0.75-quantiles are used here instead of upper
and lower hinges, which makes a negligible difference when the dataset is
large.) Assuming a standard normal distribution gives an IQR (Interquar-
tile Range, i.e., x0.75 − x0.25) of 1.348. Thus, values outside the interval
[−2.698, 2.698], about 0.69% of the sample, are classiﬁed as outliers. With
this result, about 7,000 outliers would be expected for a dataset of size 1
million in a single boxplot. Obviously it would not be possible to investi-
gate every single one of them. Looking at a standard log-normal distribu-
tion, which seems to be more appropriate for values that are determined
to be bigger than zero, the upper fence is about 4.14, leading to almost
8% outliers. Figure 3.5 shows the histogram of a sample from an N (0, 1)
standard normal distribution of size 100,000 along with a boxplot of the
same data. All outliers in the boxplot are highlighted and marked in the
histogram. By deﬁnition, any point that is far enough in the tails of the

2 A glyph — which is best translated as some “small graphics symbol” — can be

as simple as a single point.

3.4 Point Plots

63

2 0 0 0

-4 ,0 0

-3 ,0 0

-2 ,0 0

-1 ,0 0

0 ,0 0

1 ,0 0

2 ,0 0

3 ,0 0

4 ,0 0

Fig. 3.5. All 763 outliers highlighted in a sample of a standard normal distribu-
tion of size 100,000.

distribution will be classiﬁed as an outlier. In practice, only extreme out-
liers or distinct outlier clusters (for instance, where there is a gap to the
rest of the data) will be of immediate interest. Linking the possible outlier
cases to their values on other variables may uncover unusual multivari-
ate cases. Section 3.6 will investigate possible modiﬁcations more closely.

3.4.2 Scatterplots

Scatterplots do not rely on summaries of the data but on the raw data
themselves, so they are most likely to deteriorate when datasets get very
large. Some simple calculations are helpful. How many pixels does a win-
dow of average size on a computer screen hold? A typical window of size
800×600 holds almost 500,000 pixels, so if the data were distributed more
or less uniformly over x and y, about 100,000 points could be placed in
this window without substantial overplotting, provided that the data do
not exhibit discretization. Overplotting is a problem only when data ac-
cumulate at certain points or are measured at a ﬁxed resolution. Note
that plotting data on a computer screen already discretizes the data to
the pixel resolution of the screen.

Figure 3.6 shows a scatterplot of a random sample of 100,000 points
from a bivariate distribution of independent standard normal N (0, 1) and
standard uniform U [0, 1] distributions. Overplotting is not a real problem
here, and any departure from the sampled structure would be readily
seen.

Of course, real-life problems will show overplotting and the major aim
is then to get an idea of the two-dimensional density. Many suggestions
have been made for two-dimensional density estimation. In the context

64

3 Scaling Up Graphics

.

2
4

2
.
4
-

0

1

Fig. 3.6. A scatterplot of an artiﬁcial sample of 100,000 points.

of large datasets, the efﬁciency of an algorithm plays the most important
role. Because large datasets usually give a good approximation to some
underlying distribution (with large datasets often a mixture of several
underlying distributions), the optimality of an algorithm is less important
than its efﬁciency.

Section 3.5 will investigate density estimation techniques in the light

of large datasets.

The artiﬁcial data in Figure 3.6 do not have any extreme outliers or
special structure. Real datasets often have extreme values and structure
hidden in speciﬁc subsets. This structure cannot be revealed in a global
view of all the data. Zooming functions can help to focus on special sub-
groups.

Zooming should be implemented hierarchically, i.e., not only prede-
ﬁned ﬁxed zoom steps should be offered. In a hierarchical zoom, the
“zoom-in” area may be deﬁned arbitrarily. A “zoom-out” should step back
to the last zoom level. This technique allows a structured search deep into
very detailed structures of a scatterplot without losing context.

Figure 3.7 gives an example of how to visualize micro structure in a
scatterplot. Whereas the plot on the left gives little insight into the spe-
ciﬁc structure of the two-dimensional data, the plot on the right shows
some structure invisible in the default view. It was generated by zoom-
ing in by a factor of 2 on both axes and applying α-blending. The plot
shows an income threshold at about $100,000, which is also visible as a
linear threshold for Household Income. Some accumulations at the full
ten-thousand amounts are also visible.

1
1
0
0
2
1
1

0
0
0
0
5
5

3.4 Point Plots

65

0

0

347998

0

0

175000

Fig. 3.7. Standard scatterplot of Total Household Income vs. Income of Household
Head (left), a more detailed zoom with α-blending (right). (Zoom region indicated
in red.)

3.4.3 Parallel Coordinates

Parallel coordinate plots differ substantially from scatterplots. Whereas
in scatterplots just two dimensions are plotted on a two-dimensional area,
parallel coordinate plots only use one dimension per variable and display
up to 10, 20, or even more variables in parallel. Heavy overplotting is
expected on the individual axes and even more between the axes. Con-
necting the points along each variable with lines makes the plot look like
a black band of lines if more than a few thousand cases are plotted. It is
difﬁcult to recognise any structure, such as groups or patterns, any more.
Figure 3.8 shows a parallel coordinate plot of 572 observations of Ital-
ian olive oils. The parallel coordinate plot shows the content of 8 fatty
acids. Although there are fewer than 600 cases, the plot is essentially a
black band, not revealing any structure within the band.

As with scatterplots, the density of lines becomes more and more im-
portant as the number of cases increases. But whereas with scatterplots
very good results can be achieved using tonal highlighting, the much
greater amount of overplotting in parallel coordinates limits the levels
of data that can be plotted more strongly. Although it is possible to re-
duce the weight of a single line (i.e., the α-values), detailed information
will be lost as well. In this situation, non-linear functions, which map an
overplotting density to a saturation of the colour, may be tried.

Figure 3.9 shows the same data as plotted in Figure 3.8. By applying
α-blending, the group structure of several of the 9 Regions is now visible.
Zooming can also help to declutter parallel coordinates. Zooming in
parallel coordinate plots means to individually zoom in on a single axis
of the plot. Many of the connecting lines from adjacent axes may then

66

3 Scaling Up Graphics

palmitoleic

oleic

linolenic

eicosenoic

palmitic

stearic

linoleic

arachidic

Fig. 3.8. A parallel coordinate plot of 572 measurements on Italian olive oils. The
heavy overplotting obscures the group structure in the data.

palmitoleic

oleic

linolenic

eicosenoic

palmitic

stearic

linoleic

arachidic

Fig. 3.9. The same data as used in Figure 3.8 with α-transparency. Several of the
9 Regions can be seen.

3.5 From Areas to Points and Back

67

connect to points that are clipped. Successive zoom operations can peel
into a region of high density step by step.

3.5 From Areas to Points and Back

Just as a histogram is a crude approximation for the density of a sin-
gle variable, binning (cf. Carr et al.; 1987) is an approximation for the
density of the joint distribution of two variables (see also the deﬁnition
on page 129). Results regarding choice of histogram anchorpoints and
binwidths to minimize approximation errors can usually be generalized
to the two-dimensional case. Whereas there are no degrees of freedom
of how to distribute the points over the intervals in the one-dimensional
case, there is one extra choice to be made in the two-dimensional case: the
shape of the bin must be speciﬁed. Only triangular, quadratic, or hexago-
nal bins qualify as bins, because all bins must have the same shape and
cover the whole region. Although one would expect noticeable differences
in the quality of the approximation, Scott (1992) showed that the dif-
ferences are only marginal. Thus, quadratic binning can be used on the
grounds of simplicity and efﬁciency.

In two dimensions, adjacency becomes more interesting. Besides direct
binning, where all points are assigned with weight 1 to the appropriate
bin, linear binning has been proposed. When binning linearly, all adjacent
bins get a weight according to the inverse of the distance from a point to
the center of the bin. All weights for a single point must sum to 1. Linear
binning is computationally very intensive and thus not really relevant for
large datasets.

There are two reasons why switching from scatterplots of the raw data
to binned data displays is a good thing. The ﬁrst reason can be that the
dataset is too large to ﬁt in computer memory. In these cases, or cases
where data must be handled inside databases, the data have to be re-
trieved via a database query. Queries that summarize data may last some
seconds, but the amount of data that is returned is usually far less than
retrieving the complete variables and can easily be handled by the soft-
ware. The other case where raw scatterplots are no longer workable oc-
curs when the number of points cannot be rendered fast enough on the
screen. In this case, the approximation via binning can be displayed much
faster.

Most optimality criteria are no longer relevant when a dataset gets
large. Using ﬁner and ﬁner grids, the variation certainly grows. When the
binsize is down to one pixel, the binned plot is equivalent to a scatterplot.
Whereas the number of points to plot in a standard scatterplot is of order
n, the number of bins to plot is limited to the number of pixels in the
plotting area and thus does not depend on the size of the dataset. Binned
plots can ideally be used to give an approximation of a scatterplot.

68

2
.
4

2
.
4
-

0

3 Scaling Up Graphics

2
.
4

.

2
4
-

0

1

1

Fig. 3.10. The sample data from Figure 3.6. Raw scatterplot (left) and binned to
a 256 × 256 binning grid (right). Both displays render the structure of the data
sufﬁciently well.

Figure 3.10 shows the data from Figure 3.6 both as a raw scatterplot
(left) and as a binned scatterplot. The binning grid is 256 × 256, which is
about one-quarter of the window resolution. The overall impression of the
two-dimensional distribution does not differ from the one in Figure 3.6.

When zooming into the plot, a logical zooming may switch to a display
of the raw data, as soon as the number of points to retrieve and plot is
small enough to be handled gracefully.

Figure 3.11 gives an example of logical zooming in scatterplots. The
ﬁgure shows data for bank deals, plotting trade proﬁt against amount.
The ﬁrst three plots (left to right and top to bottom) show binned data
on a grid of 150 × 150 bins. The two ﬁrst zoom steps (from left to right)
each zoom by a factor 252, the third step zooms by a factor of 102. In
this example, the self-similarity in the data is striking. Querying this
plot shows the bin intervals and the corresponding counts. Whereas most
bins include only a couple of points, the bins close to the origin still cover
thousands of points. The plot itself displays about 190,000 points. The
third zooming focuses on an area that does not include the origin and
thus cuts down the number of points to plot more drastically to about
5,000. Because these 5,000 points can easily be handled in a scatterplot,
they are now plotted as individual points.

Another use of binning methods is to estimate two-dimensional densi-
ties of pairs of variables. Methods like ASHs (average shifted histograms)
and kernel-density estimations using various kernels have been pro-
posed, as in the one-dimensional case.

3.5 From Areas to Points and Back

69

Fig. 3.11. Zooming into 300,000 points. Except for the plot on the lower right, all
plots use binning to approximate the scatterplot. The lower right plot shows 4,500
points in the zoomed area, which is only (25 × 25 × 10)−2 = 6250−2 = 3.9 · 10−7
the area of the plot top left. The queries in the lower row show different results
according to the plot type (binned or classical). (Scales have been transformed for
reasons of conﬁdentiality; zoom regions are indicated in red.)

3.5.1 α-Blending and Tonal Highlighting

When the α-channel of a graphics system is used for α-blending, a kernel-
density estimator using a rectangular kernel function (and thus a sym-
metric kernel) is, in effect, obtained. The α-channel speciﬁes the trans-
parency of the colour of an object. The α-channel can be speciﬁed as a
fourth channel besides the three RGB channels to specify a colour. An
α-value of 0 corresponds to complete transparency and a value of 1 (or
100%) to complete opacity.

70

3 Scaling Up Graphics

Fig. 3.12. Four gray colour plates with an α-value of 0.25 (left). Using colour
makes the interpretation of the resulting colours harder (middle). A zoomed de-
tail of a scatterplot using α-blending (right).

Figure 3.12 gives an example of how colours with α-transparency ap-
plied blend with their background. A further discussion of the interaction
of highlighting and α-blending can be found in Section 4.4.2.

Whereas α-blending relies on the graphics system to “add” overplot-
ting points, tonal highlighting counts the overplotting information for
each pixel/bin explicitly. The mapping from counts to gray levels is done
via a (possibly linear) transfer function.

Fig. 3.13. An example of how tonal highlighting compares with kernel-based den-
sity estimators.

3.6 Modifying Plots

71

Theus (1996) showed that tonal highlighting is equivalent to kernel-

density estimation as long as the kernel function k is symmetric, i.e.,

ˆfth =

1
cn

n(cid:4)

i=1

k

(cid:6)

(cid:5)

x − xi
c

= ˆfkernel =

1
cn

n(cid:4)

i=1

k

(cid:5)

(cid:6)

xi − x
c

for all kernel functions k
(cid:7) ∞

(cid:7) ∞

k(x)dx = 1,

−∞

−∞

k2(x)dx < ∞,

(cid:8)
(cid:8)
(cid:8)
(cid:8)

k(x)
x

(cid:8)
(cid:8)
(cid:8)
(cid:8) → 0

for k(x) = k(−x).

(3.3)

for |x| → ∞.

(3.4)

Figure 3.13 illustrates the use of tonal highlighting for a crude density
estimator. For 9 sample points, the resulting one-dimensional density es-
timates via tonal highlighting (upper plot and gray scale below) and via a
normal kernel-density estimator (lower plot and gray scale above) are dis-
played. Obviously the result from the kernel-density estimator — which
uses a normal kernel — is much smoother. This will be less relevant if
the number of points is larger. On the other hand, features like gaps or
other artefacts are more likely to be smoothed out by a kernel-density
estimator that has a kernel function that is too wide.

3.6 Modifying Plots

Modifying the way graphs are plotted does not affect the essential deﬁni-
tion of a graph. Making barcharts more interactive or using tonal high-
lighting or α-blending in scatterplots does not change the basic deﬁnition:
bars are still bars and points are still points, even if their brightness may
vary.

For boxplots, the number of outliers is likely to grow as a linear func-
tion of dataset size n, cf. Section 3.4.1. As long as datasets are small,
Tukey’s deﬁnition is faithful towards the way outliers would be identi-
ﬁed and perceived. But for larger datasets, the deﬁnition is not so useful.
The idea of plotting outliers in a boxplot was to identify extreme points in
a sample, which might be worth investigating individually more closely.
This is feasible as long as the number of outliers is not larger than a
couple of dozen points.

Looking at Figure 3.5, points that look like outliers can be seen even in
a boxplot of 100,000 points. Four points at the lower end and 10 points at
the upper end clearly seem to be “further out” than the rest of the sample.
An updated deﬁnition of outliers in a boxplot should obviously take the
density into account, to avoid plotting hundreds of points melting into a
line lengthening the whiskers without allowing an individual investiga-
tion of the points. Furthermore, there should be a sensible gap between
the whiskers and the ﬁrst point classiﬁed as an outlier.

72

3 Scaling Up Graphics

Even if a general deﬁnition does not exist for all large datasets, any
solution that enables the identiﬁcation and selection of outliers is accept-
able, because it makes boxplots workable again.

3.7 Summary

The design and implementation of statistical graphics should pay atten-
tion to the challenges from big datasets. For many users, this has not
been an issue up till now and so some statistical and graphics packages
can have problems with graphics of more than 10,000 cases.

However, most of the plots used in statistical graphics can be scaled
up to be usable with large datasets. Areal plots for categorical data are
quite robust against large data glyph-based plots do have more serious
problems. Modiﬁcations like α-blending or binning, interactions like (log-
ical) zooming and panning, or interactive reordering and grouping are of
great assistance when dealing with large datasets.

In general, all statistical graphics that summarize the data, and plot
some version of these summaries, will scale up to large datasets. Bar-
charts, for instance, plot the breakdown of a categorical variable, which is
a sufﬁcient summary to fully describe the data. Binned scatterplots show
an approximation of the underlying scatterplot and have a complexity
that depends on the (constant) size of the binning grid rather than on the
size of the dataset.

4

Interacting with Graphics

Antony Unwin

What is your substance, whereof are you made,
That millions of strange shadows on you tend?

William Shakespeare, Sonnet LIII

4.1 Introduction

This chapter examines how interaction can extend the power and poten-
tial of graphics to deal with large datasets. The ﬁrst part of the chapter
looks at interactive graphics in general, and the second part concentrates
on applying these ideas to large datasets. Large datasets are more difﬁ-
cult to visualize than small ones for the reasons outlined in Chapter 1.
Interactive graphics offer effective methods for surmounting these difﬁ-
culties. A static graphic is ﬁxed and cannot be adjusted or extended. An
interactive graphic can be queried and altered to supply more informa-
tion.

In general, increased dataset size leads to increased complexity and
requires more sophisticated tools, whether for querying, for scaling, for
linking, for zooming, or for sorting. This may not be apparent when a
large dataset is ﬁrst examined, as interaction can be very effective in
revealing what information is there on the surface. It is when you want
to go to deeper levels and gather more detailed information that the need
to extend basic interactive tools becomes clear.

Besides extending and revising existing interactive tools, new interac-
tive ideas can be introduced to deal with the additional problems caused
by the sheer size of large datasets. Subsetting, aggregating, transform-
ing, and weighting are obvious targets in this respect, but so is the task
of just managing data analyses.

74

4 Interacting with Graphics

4.2 Interaction

Interaction can be introduced convincingly and attractively by selecting
a case in a scatterplot of a small dataset. Everyone can see the beneﬁts of
being able to get the exact values of a point’s coordinates and being able
to link a case to displays of other information.

Figure 4.1 shows data from
the Decathlon event at the 2004
Olympics in Athens. Dimitry
Karpov got the highest number
of points for the discus, but was
one of the weaker performers in
the javelin.

With large datasets, things
are rather different. Very few
individually
points may be
queried, and while
linking
from a group of points provides
information about the group
as a whole, this is not as inter-
pretable as for a single point.
Of course, interaction is much
more than just querying. There
is linking and the various ways of changing a plot’s characteristics, like
rescaling, zooming and sorting.

Fig. 4.1. A simple query to identify the ath-
lete who has the highest score in the discus
and a low score in the javelin.

The term “statistical objects” is important. Graphic displays are built
up of many individual components. For instance, a bar in a barchart has
a border and an interior. Neither of these are statistical objects, only the
bar as a whole. It may be useful to be able to interact with the individ-
ual components to vary the appearance of a display, but that is not the
kind of interaction meant here. Similarly, an axis as a whole is a statisti-
cal object, though it is made up of several separate graphic components.
Working interactively means that statistical objects on screen can be di-
rectly manipulated without the user having to resort to menus, dialog
boxes, or command-lines. This is a fairly strict deﬁnition of interaction,
sometimes different degrees of interaction are relevant for actions that
are less frequently used, but it allows us to concentrate on the essentials
of the concept.

The need for graphics in analysing large datasets is just as great as in
analysing small datasets. Graphics are excellent for identifying “obvious”
results (e.g., comparing two parallel boxplots that do not overlap), but
not for detecting more “statistical” differences (e.g., whether the means of
two overlapping subgroups differ). On the other hand, everything tends
to be highly statistically signiﬁcant with large datasets, and graphics are
valuable for directing attention to differences that have some practical

4.3 Interaction and Data Displays

75

relevance. As with small datasets, interaction is helpful in large datasets
for exploring ﬁrst impressions to assess what validity they may have —
by querying the values, by linking to other displays, by rescaling axes,
by sorting data, or by zooming in. Without interaction, it is difﬁcult to
evaluate ideas gained from graphics.

4.3 Interaction and Data Displays

Pinning down the essentials of interaction for data displays is tricky. The
problem has partly to do with people’s notions of interaction itself. As
Klinke and Swayne found when they edited a special edition of Computa-
tional Statistics in 1999 on interactive graphical data analysis: “There is
some disagreement about the meaning of the term ‘interactive graphics’.”
The word interaction has been used in a variety of ways in computing
over the years and some of the older, weaker uses have survived longer
than might have been expected. The main reason, however, for any difﬁ-
culty in developing a theory of interactive graphics is that new interactive
possibilities are continually emerging, causing rethinks of earlier ideas.

Both Theus (1996) and Unwin (1999) have proposed possible struc-
tures. Integrating the two suggests that there are three broad compo-
nents of interaction for statistical graphics:
• Querying
• Selection and linking
• Varying plot characteristics.

Querying is a natural ﬁrst activity to ﬁnd out more about the display
that you have in front of you. Next, you select cases of interest and link
to other displays to gain further information. At this stage, it’s helpful to
vary the form and format of displays to put the information provided in
the best possible light.

4.3.1 Querying

Querying enables you to ﬁnd out detailed information about features that
grab your attention. What is the value of that outlier? How many missing
values are there? How big is the difference in size between two groups?
The ability to browse displays quickly and without fuss is very useful for
checking ﬁrst impressions. Early interactive querying was restricted to
returning the (x, y) coordinates of a point, usually at some distant output
line. Now, it is not only possible to deliver the information directly at the
location of the object queried, but much more sophisticated information
can be returned as well. The key factor is that querying of any statistical
object — be it a point, a bar, an axis, a variable or even a whole display
— should always follow a consistent scheme. Making the display of the

76

4 Interacting with Graphics

results of a query temporary avoids screen clutter and dispenses with the
need for additional commands to remove information.

Providing different levels of querying is an elegant way of aiding the
analyst in an unobtrusive manner. For instance, a standard query of a
pixel in a scatterplot reports how many points are displayed there (if any),
how many of them are highlighted and what range of X and Y values
they represent. An extended query provides information on the values
of other variables for those points. In Figure 4.1, you could also query
where Karpov ﬁnished overall (he won the bronze medal, 168 points be-
hind the winner, Sebrie, somewhat less than the difference between them
in the Javelin). For larger datasets it would make sense to offer a further
level to provide local distributional information, including mini graphical
displays. It is tempting to consider multiple levels of querying, but this
would counteract the desired simplicity of interactive methods. Three in-
formation levels — default, extended, and deep — should sufﬁce. Deciding
what these levels should offer for different graphical displays will involve
contentious but constructive discussions.

For an example of queries prompting different levels of detail and com-
plexity, consider again the example of Figure 4.1. Figure 4.2 shows the
same scatterplot as Figure 4.1. The leftmost plot shows a simple query
that is not object-related, but just gives the location of the mouse pointer
in the coordinate system. The middle plot is the standard query of an
object in the scatterplot — in this case the results of the winner of the
Athens 2004 decathlon — which returns the exact values (xi, yi) of the
point queried. The plot on the right shows an extended query, which gives
additional information, not only related to the variables used in the plot,
but to other information about this object. This is the simplest form of an
extended query, but there could be other versions too, linking to further
external information.

Fig. 4.2. Example of queries at different levels of detail.

4.3 Interaction and Data Displays

77

4.3.2 Selection and Linking

Selection is used for identifying a group of cases of interest, using linking
to provide more information about them in other displays, commonly us-
ing highlighting of some kind. Highlighting means that linked cases are
displayed differently from others. (Querying is actually a special form of
selection and linking, which does not use highlighting but presents in-
formation for selected objects temporarily.) Typical applications would be
to investigate the properties of a cluster of points in a scatterplot or to
look at the patterns of values for a subset of the data. In small datasets,
that is about all you need and selection is a straightforward process. In
Figure 4.3, the oils from Inland-Sardinia from the olive oil dataset have
been selected. The scatterplot shows that all have very similar linoleic
and oleic values.

A more sophisticated form of selection is to use brushing: while the se-
lection tool is moved across the data in a display, the selection is updated
in real time. This is an interesting option for exploring conditional struc-
tures, but the continually changing linked graphics are more difﬁcult to
understand than with a simple selection and stable linking.

Linking is only possible if multiple views of the same data can be
displayed simultaneously. Software packages, which make that awkward
rather than intuitive, inhibit the use of linking. It is essential to think of
many displays contributing to an overall picture and not to aim for some
“optimal” single display. In the Bowling Alone dataset, there are almost
400 variables, and exploring groups of them together can be very infor-
mative. Figure 4.4 shows a barchart of the variable Fistﬁght (“I would do
better than average in a ﬁstﬁght”) with the options “Generally/Deﬁnitely

0
7
4
1

l

i

c
e
o
n
L

i

8
4
4

6300

Oleic

8410

Area

Calabria

Coast-Sardinia

East-Liguria

Inland-Sardinia

North-Apulia

Sicily

South-Apulia

Umbria

West-Liguria

Fig. 4.3. Simple linking between two plots. A bar in the barchart has been selected,
and those cases are highlighted in the scatterplot.

78

4 Interacting with Graphics

agree” selected. The plots would be larger on screen and easy to read.
Spineplots of eight possibly related variables have also been drawn and
aligned to use space efﬁciently. The ﬁgure here is just to give an idea of
what is possible for exploratory analysis, it is not intended to be of pre-
sentation quality. Some associations are immediately obvious:
• men have a higher rate (lowest middle display);
• as do those who believe there should be a gun in every home (lowest

left display).

Some are non-existent:

•

citysize seems irrelevant (middle top display).

Some are worth further investigation:
• number of children at home (right top display);
• number of children in education (right middle display).

Of course, these are only bivariate associations and there are doubtless
multivariate structures here. Furthermore, information on age is not in-
cluded and that is likely to be important. Nevertheless, the beneﬁts of
being able to display several graphics together are obvious. It is more
likely to be done, if they can be drawn easily and ﬂexibly. This is one of
those supportive organisational tasks that software could be designed to
carry out for us but usually does not.

4.3.3 Selection Sequences

Selections involving several variables can be made with selection se-
quences (Theus et al.; 1998). The idea is to combine the intuitive ap-
proach of interactive selection with the ﬂexible power of editable code.
All selections are made by clicking or grabbing the relevant parts of
graphic displays, using the appropriate selection modes chosen from
a tools palette or pop-up menu. The individual components of the se-
quence are automatically stored, so that they can be graphically altered
or amended without affecting the rest of the sequence. DataDesk (Velle-
man; 1997) has offered an interactive selection capability for many years,
but the individual components of the selection could not be changed with-
out resetting the whole sequence. Selections written in code, for instance
in R or in SQL, could be edited, but the process is not very intuitive. Both
MANET (Unwin et al.; 1996) and Mondrian (Theus; 2002b) incorporate
selection sequences. A similar approach was implemented by Hochheiser
and Shneiderman (2004) in the TimeSearcher tool for analysing time se-
ries.

As an example, consider selecting the group of males with two chil-
dren at home who believe there should be a gun in every home. Click on
males in the barchart of gender, switch to intersection mode, select the

4.3 Interaction and Data Displays

79

Fig. 4.4. Nine related, linked variables out of just under 400 variables in the Bowl-
ing Alone dataset. (For presentation purposes on the printed page, this graphic has
been drawn smaller than it would appear on screen.)

bar for two children in the family barchart, and ﬁnally select the relevant
bars in the gun barchart. Because this combined selection is equivalent to
drilling down, the order of selection is not important here. The only thing
that matters is that the ﬁrst selection is a normal selection and that the
following two are intersection selections. More complicated combinations
are possible involving other selection modes where order is important,
but drilling down is by far the most common selection sequence used.
Editing a selection sequence is easy. If you want to look at the group of
males with no children who believe there should be a gun in every home,
you just need to click on the bar representing those with no children in
the family barchart. The mode of that selection component and the rest
of the sequence remain unchanged.

A selection sequence provides information on a selected subgroup, but
no information on other complementary groups. This means that no com-

80

4 Interacting with Graphics

parisons can be made. It is only through making comparisons that statis-
tics can be interpreted. Considering the survival rate of all females in ﬁrst
class on the Titanic, it would be appropriate to compare it with the rate
for males in ﬁrst class and with the rate for females in other classes (but
not with all other passengers and crew). These comparisons are possible
in mosaic plots by choosing the relevant ordering of variables, where each
comparison requires a separate ordering. Note that these are exploratory
analyses. If it was known in advance what selections were of most inter-
est, they could be pre-programmed together with the necessary groups
for comparison.

One solution would be to automatically produce a set of complemen-
tary mosaic plots for the selected group by each of the deﬁning variables

First

Second

Third

Crew

f

m

f

m

f

m

f

m

female

male

1st 2nd 3rd C 1st

2nd

3rd

Crew

Fig. 4.5. Doubledecker plots of the Titanic dataset with survivors highlighted.
Above: Class by Gender. Below: Gender by Class.

4.3 Interaction and Data Displays

81

total Group

total
: 84989
hilited: 14847
0
0
0

Fig. 4.6. Three examples of an information window for the selection in Figure 4.4.
Top left: the MANET software, with additional group information. Top right: Mon-
drian. Bottom: a report window in Data Desk.

conditional on the values of all the others. In the example, this would re-
quire two: survival by gender given class and survival by class given gen-
der. Doubledecker plots (Hofmann and Wilhelm; 2001) have been used
in Figure 4.5. Instead of alternately splitting the x and y axes as in a
standard mosaic plot, only the x axis is used. This allows the direct com-
parison of all highlighted proportions. The upper plot shows that male
survival rates were lower than female survival rates in each class. The
lower plot shows that female survival rates declined by class whereas
male rates did not — second class males had a lower survival rate than
those in the third class. Notice how much extra information the comple-
mentary plots provide. It is difﬁcult to judge the survival rate of females
in ﬁrst class in isolation.

Keeping track of a selection from a single plot is easy, but it is far more
difﬁcult to manage selections from multiple plots. In principle, an infor-
mation window could be automatically created to report and manage the
current selection, but it is not easy to see how this could be done in a read-
ily interpretable way. An SQL-equivalent would be technically correct but
only comprehensible to experts. A computer-generated text is likely to be
clumsy and awkward to interpret. Incidentally, but importantly, one task
that the software can easily perform, which is extremely helpful, is to re-
port the absolute and relative case counts for selections (see Figure 4.6).
Selections across several variables can sometimes shrink to nothing, even
in huge datasets.

82

4 Interacting with Graphics

1

2

3

4

5

6

NA

1

2

3

4

5

6

NA

Fig. 4.7. The Bowling Alone gun question displayed as a barchart and spineplot
(with the same selection as in Fig 4.4: those who agree generally/deﬁnitely they
would do better than average in a ﬁstﬁght).

4.3.4 Varying Plot Characteristics

There are rarely single “optimal” displays in data analysis. Information
is gained from working through a range of potential displays: rescaling,
resizing, zooming, reordering, reshading — reformatting them in many
different ways. Point sizes may be made bigger in scatterplots to draw
attention to outliers. The aspect ratio of a plot may be varied to empha-
size or to downplay a slope. The choice of aspect ratio affects how mosaic
plots look, and different ratios may be appropriate for different compar-
isons within a plot. Barcharts may be switched to spineplots to compare
highlighted proportions better. Figure 4.7 shows how the barchart em-
phasizes absolute numbers and the spineplot emphasizes rates. Boxplots
may be switched to dotplots to check for gaps in the data. A scatterplot
axis may be rescaled to exclude outliers and expand the scale for the bulk
of the data. The variables in a mosaic plot may be reordered to change the
conditional structure displayed. α-blending may be applied to a parallel
coordinates display to downplay the non-selected cases (Figure 4.8). The
binwidth of a histogram may be varied to provide a more detailed view
of the data (Figure 4.9). A set of plots may be put on a common scale to
enable better comparisons.

Data may be sorted. There are surprisingly many ways that this can
be done. A chart of US States from the Bowling Alone dataset might be
sorted by the number of high income respondents, by the proportion over
70, by any one of a number of criteria. Figure 4.10 shows two examples,
though clearly in this printed form they are unsatisfactory — there are
too many States for proper labeling. A horizontal layout might be used
if a presentation graphic is needed. Presented interactively, there is, of
course, no problem, since users can then query, zoom in and, if they want
to, resort.

4.3 Interaction and Data Displays

83

LJP

HJP

110HP

PVP

1500mP

100mP

ShotP

400mP

DisP

JavP

Fig. 4.8. Parallel coordinate plot of the decathlon points at the Athens Olympiad
2004 with the medal winners highlighted.

7404

8893

7404

8893

Fig. 4.9. Two histograms of the numbers of points the competitors achieved in the
Decathlon at Athens. The second plot was obtained by varying the binwidth using
a direct manipulation keyboard control.

84

4 Interacting with Graphics

Fig. 4.10. US States by number of respondents in the Bowling Alone dataset sorted
above by the number of higher income respondents (California is ﬁrst and the
noticeably smaller state in 6th position is New Jersey) and below by the proportion
of respondents over 70 (DC has the highest value, then Florida and Nebraska).

4.3.5 Interfaces and Interaction

Successful interactive applications need good interfaces. Whether a soft-
ware’s interface is really excellent or not is likely to be a subjective matter.
Most of us can tell when an interface is poor, though as is common with
design issues that does not mean that we can specify how an interface
should be. There are many different possibilities, and both individual op-
tions and the overall consistency of an interface are relevant. Different
people work in different ways and it is useful to offer a range of possibili-
ties. There are good discussions of the issues in Nielsen (1994).

For interactive graphics it is important that the options to work with
the displays are readily available (not just hidden away in menus) and
that they do not clutter up the screen, taking valuable space away from
the displays themselves. Frequently used options should be easier to ﬁnd
than ones that are rarely used. Ideally, users should know intuitively
what they can do with any given statistical object, whether the commands
are visible or not. This is unreasonable to expect for all but expert users,
so both help facilities and command redundancy (providing access to com-
mands in more than one way, e.g., both as shortcuts and in menus) are
necessary.

The more ﬂexibly and more easily tasks can be carried out, the more
likely they will be, and this implies the need for interactive controls. Some
may be made implicitly available in a cue, so that they appear when the

4.3 Interaction and Data Displays

85

cursor moves across their location. For instance, it is easy to switch be-
tween barcharts and spineplots using a command located along the base
of the display. Some may be made discreetly available like the anchor-
point and binwidth slider controls for histograms in MANET.

The best way to make commands available to users is a delicate inter-
face question. It depends on how frequently the command may be needed,
on the user’s level of knowledge of what might be worth doing in any sit-
uation, on what kind of help is provided, and on how often the package
is used. There will clearly be no one best way, and the most sensible ap-
proach is to provide access in more than one way: shortcuts for the ex-
perts, pop-ups to offer guidance, and menu items as backup giving an
overview of all commands.

The object-verb paradigm (select the object you want to act on and
then what you want to do with it) is the natural approach for exploratory
work. It also makes it easier to offer the user support with screen hints or
pop-up menus, as for most objects there are only a limited number of pos-
sible options. Commands may be provided in a variety of ways, ranging
in decreasing immediacy of interaction from cues over keyboard short-
cuts, sliders, pop-up menus, ﬂoating controls (palettes or dialog boxes),
pull-down menus, modal dialog boxes to command lines. The amount of
information that can be speciﬁed with these controls ranks in reverse or-
der: cues just allow a binary switch, keyboard shortcuts a single action,
sliders control a range of values, palettes and pop-ups offer command
selections, while menus and dialog boxes offer the full range of user in-
teractions. Floating controls remain open while the changes entered in
them take place. With a modal dialog box, the dialog takes control of the
process and changes are only made after the box has been dismissed with
“OK” or a similar command.

Exploratory data analysis (EDA) has to be ﬂexible and fast. There are
many ideas to be checked, and analysis should neither be held up nor dis-
tracted by the interface. This has two implications: ﬁrstly that frequently

Complexity / Information

cue
single click

keyboard
shortcut

slider
mouse-drag

pop-up
menu

ﬂoating
palette

pull-down
menu

modal
dialog

command
line

Speed / Context Preservation

Fig. 4.11. Hierarchy of user interface controls according to their information con-
tent, complexity, speed, and context preservation.

86

4 Interacting with Graphics

used commands should be on hand when required and secondly that users
should be warned if displays may mislead.

Cues are one way to make commands accessible. They are areas
within a display where the cursor changes form to indicate that clicking
in the area will change the display. The disadvantages of cues are that
users may not know they are there and may not know what they mean,
if they do ﬁnd them. The advantages are that they are quick and unob-
trusive. Examples in MANET include switching between barcharts and
spineplots, switching axes in scatterplots and rotating dotplots through
90◦ (i.e., switching from vertical to horizontal displays or vice versa).

4.3.6 Degrees of Linking

Changes in one display often have impact on other displays. Velleman
incorporated a useful classiﬁcation of linking between displays in Data
Desk many years ago:

Hotlinking means that any change in one window is propagated imme-

diately to other windows hotlinked to it.

Warmlinking means that the user has the option of propagating the

change for each linked window separately.

Coldlinking means that after the initial link between the windows, no

further connection exists between them.

The main example of hotlinking is selection. There can be few situations,
if any, when highlighting the selected points in other plots would not be
desirable. Linking display changes is a more subtle issue and warmlink-
ing comes into play. Commonly, it is sensible to link category order in
barcharts and mosaic plots, especially as that is the most elegant way
of varying a variable’s category ordering within a mosaic plot. However,
it may be informative to compare barcharts of the same data with quite
different orderings (cf. Chapter 5).

Coldlinking is used when graphics have been prepared for publication
and are not to be changed again. It is an option in spreadsheets when
values instead of functions are copied.

Warmlinking is useful for scaling of continuous variables. If a vari-
able’s scale is changed in one window, then it can be useful to change
it in all. The concept of warmlinking arises in an important way in an-
other context. Nowadays many datasets, especially large ones, are con-
tinually developing. The term data streaming is used, where more and
more data are collected on a continuous basis. Hotlinked graphics should
then also change all the time, and this could be mildly distracting and
potentially misleading. Warmlinking to the dataset is the best solution.
People who work with databases are more aware of these issues than
statisticians, most of whom have up till now been accustomed to work
with ﬁxed datasets.

4.3 Interaction and Data Displays

87

4.3.7 Warnings and Redmarking

Displays may mislead if scales are chosen such that some points are not
included or if the screen resolution is not high enough to display areas
of small numbers of cases. Redmarking (see Hofmann (2000) and Sec-
tion 3.3.1) is one way to counteract this. A red mark is drawn on the
display, ideally positioned to indicate where the problem arises. For his-
tograms and barcharts, a line can be drawn underneath the affected bar
(because the bar as a whole has too few cases to be visible or because the
number of highlighted cases is too small or because the number of non-
highlighted cases is too small). For displays of continuous variables (e.g.,
histograms and scatterplots) with scales that do not cover the range of all
cases, some sort of warning hint must be shown, be it a red square drawn
in the corner of the display or a red frame, indicating that some points
are plotted outside the window.

In some graphics, only the fact that a histogram’s horizontal axis ap-
pears to extend far beyond the data alerts the analyst to the presence of
a few outlying cases. Because it is common in large datasets to have iso-
lated gross data errors, it is important to be able to recognize and deal
with them (cf. Figure 3.2).

A warning of some kind is also in order if highlighting proportions
may mislead. In Figure 4.10, States where the numbers highlighted are

Fig. 4.12. A histogram with red bars indicating bars that are too small to be
displayed at this screen resolution. The data are logged amounts of 450,000 bank
deals.

88

4 Interacting with Graphics

too small for the highlighting to show have been redmarked. Redmarking
would also be used if the non-highlighted proportion was too small to be
displayed.

Figure 4.12 shows the data in Figure 3.2 again with one deal type
selected. Most of these deals were for larger amounts, but the redmarks
under the bars to the left of the middle show that there were a few smaller
deals of this type, too. The red marks to the right of the middle show that
not all deals for those larger amounts were of that type.

4.4 Interaction and Large Datasets

Some tasks need a reﬁnement of method for larger datasets. Finding
an individual highlighted case in a small dataset is just a matter of a
quick scroll through the data. This is not a practical option for large
datasets, but implementing a command to jump to the highlighted case
is a straightforward solution. For multiple highlighted cases, the initial
solution would be to show only those selected and to mask the rest. The
disadvantage of this approach is that cases adjacent to the highlighted
ones are not visible, and it is useful to see the selection in context to in-
terpret it properly. Checking missing values in the Tropical Atmosphere
Ocean dataset (http://www.pmel.noaa.gov/tao/), there were some
unusual values before the missings, suggesting a developing problem.
Context is a crucial word for large datasets. For small datasets, the whole
dataset is the context and it can be viewed all at once. For large datasets,
this is simply not possible.

Above all, the distinction between point-based displays like scatter-
plots and area-based displays like histograms or mosaic plots is impor-
tant, because area displays scale up in an obvious way, whereas point
displays do not (cf. Chapter 3).

4.4.1 Querying

Querying or selecting a bar in a histogram (or a cell in any area display)
looks much the same whether the bar contains 10 cases or 100,000 cases,
but the scale of information is different. Knowing that 10 cases are aged
24 and that 6 are female (because they are currently highlighted from a
selection of all females) and the rest are male is about the highest level of
detail the data can support. With 100,000 cases, much more can be done:

•

Is the proportion of females signiﬁcantly different from 50% (or from
the proportion in the whole dataset)?

• Does the proportion of females rise or fall monotonically across the

range?

• What does linking to additional variables reveal?

4.4 Interaction and Large Datasets

89

Gender

male

female

NA

18

Age

Fig. 4.13. The age distribution of Bowling Alone respondents with females high-
lighted.

Figure 4.13 shows the age distribution from the Bowling Alone dataset
with females highlighted. The query shows that there are 1,116 females
(60.3%) out of 1,851 respondents aged 24.

If data are not visible, they cannot be directly queried. If redmarking
is used (cf. Section 4.3.7) then a consistent solution is to interrogate the
warning red marks themselves.

Querying point-displays from large datasets is more difﬁcult than for
small datasets, because the overwhelming majority of points will not be
visible as individual objects. Outliers may still be queried, but there is
not a lot to be gained by querying the middle of a solid mass of points
and discovering that the screen pixel picked out is overlapped by 14,758
points of which 3,821 are currently selected. In practice, scatterplots of
the full dataset will likely be displayed using either some sophisticated
form of density estimation or just simple binning (cf. Section 3.5). Stan-
dard querying will only be of value for outliers or after zooming into a
subset of the plot.

4.4.2 Selection, Linking, and Highlighting

In large datasets, you will want to do more than making simple selec-
tions in a single plot. Having selected those with high income, you may
want to explore differences by sex, by age, and by other covariates. This
means that the selection process becomes more complicated and it be-

90

4 Interacting with Graphics

comes increasingly important to make sure that appropriate comparisons
are made.

For large datasets, many selections may be interesting concurrently.
Starting with one selection (say gender), several paths could be followed
up in parallel to discover which seems most promising. In the income ex-
ample, it is not immediately clear which of several explanatory variables
might be most important, and they would have to be explored in several
different ways.

These are more complex procedures than are necessary for exploring
small datasets, where it is easy for an analyst to maintain an overview
of the whole process. Software is needed that provides support for data
exploration. There is a danger of analysis being handicapped by having to
perform housekeeping tasks to avoid the risk of losing track of analyses.
A more structured approach is necessary for large datasets than for small
ones.

There are two additional problems associated with linking and large
datasets — visualizing small numbers and highlighting in scatterplots.
With small datasets, it is unusual not to see every case in every graphic.
With large datasets, small groups of cases will be invisible due to insuf-
ﬁcient screen resolution. Redmarking (see Section 4.3.7) alerts us to the
problem but does not provide a full solution. One alternative could be a
local logical zooming and that would work well as long as the overall con-
text is either not necessary or is maintained in a bird’s eye view. Further
alternatives are censored zooming and quantum zooming discussed in the
next section. Hotselection, suggested by Velleman and implemented in
DataDesk, is an attractive option, especially for large datasets. Only cur-
rently highlighted points are shown (Figure 4.14), so it is like a drilling
down, except that changing the selection immediately changes all hotse-
lected plots and analyses, so that you can switch between different groups

Fig. 4.14. With only a few cases highlighted (all younger than 18), any structure of
the highlighted cases is hard to see (left). Simple zooming can help (middle), and
hot selection (right) helps to focus on only the selected subgroup.

4.4 Interaction and Large Datasets

91

of cases very easily. For comparing groups in this way it is advantageous
to freeze the scales in the plots so that they remain properly comparable.
Scatterplots were the ﬁrst display for which linking was shown (Mc-
Donald; 1988) and in a way it is surprising that the inherent problems
have never been resolved. Displaying multiple points at the same loca-
tion is still not handled by many software packages, even though it was
a feature of the original 3-D rotating plot system PRIM-9 (Fisherkeller
et al.; 1971). What to do about highlighting in glyph-based plots is a much
more difﬁcult problem. In Figure 4.15 (left), it looks as though most data
are highlighted, but in fact less than 4% are. This is because the high-
lighted cases are plotted on top of the non-highlighted cases. This is a sen-
sible ordering for smaller datasets but leads to the unsatisfying results
in Figure 4.15 (left) — a problem that must be addressed in all glyph-
based plots for large data; see also Chapter 6. Figure 4.15 (right) uses
α-blending, as described in Section 3.5, for both the data and the high-
lighting. Now it is easy to see that only a small fraction of the cases are
selected, but the resulting image is still hard to interpret quantitatively.

Fig. 4.15. Parallel coordinate plots without α-blending on the highlighted cases
(left) and with α-blending.

92

4 Interacting with Graphics

4.4.3 Varying Plot Characteristics for Large Datasets

Zooming

As Shneiderman’s mantra puts it: “Overview ﬁrst, zoom and ﬁlter, then
details on demand” (Shneiderman; 1996). Zooming is an important tool
of graphical analysis. It may be a simple idea in theory, but it is one that
turns out to be complex in practice. Zooming does not only consist of im-
age magniﬁcation. The larger the dataset, the more zooming is needed.
For large datasets, this is not just a matter of a zoom factor of 2 or even of
10, it can be a factor of several powers of 10 and it may not be symmetric
in the axes. In Figure 4.16, there are two plots of proﬁt against amount
for some 450,000 company bank deals. The ﬁrst shows all the data and
the second the plot restricted by a factor of 10−5 on the x-axis and 10−3
on the y–axis.

To decide just which levels of zoom reveal information in data re-
quires more sophisticated tools than are available at the moment. Zoom-
ing should be guided by user-speciﬁed data-driven criteria with multiple
levels of zoom and multiple zooms in parallel. You have to be able to move
between different levels smoothly and without losing a sense of context,
and you need to be able to compare parallel zooms (i.e., zooms of the same
level at different locations in the data); for instance, is the pattern of in-
come in the late 1970s the same as that in the 1980s and the early 1990s?
Orientation and navigation tools are needed to keep track and to guide.
Current solutions that use a bird’s eye overview in a separate window or
non-linear transformations such as ﬁsheye are effective, especially when
they include interaction, such as being able to pan around in the bird’s

]
R
U
E
[

t
i
d
e
r
C

l

s
e
a
S

]
R
U
E
[

t
i
d
e
r
C

l

s
e
a
S

Amount [EUR]

Amount [EUR]

Fig. 4.16. Scatterplots of proﬁt against amount. On the left, all 450,651 cases. On
the right, the 261,636 cases close to (0,0).

4.4 Interaction and Large Datasets

93

Table 4.1. Methods of Zooming

Method

Description

Basic

Logical

Object

The display is magniﬁed.

As magniﬁcation increases, more detail is shown.

Only certain object types are magniﬁed.

Semantic

Magniﬁcation depends on information to be imparted.

Ceiling-Censored Objects are magniﬁed up to a limit C.

Floor-Censored

Objects smaller than size F are not displayed.

Quantum

Highlighted small groups are magniﬁed.

eye view and being able to zoom in and out continuously and smoothly.
A parallel slider control for the level of zoom can be incorporated in the
overview display. For high levels of zoom, it is possible for the exact zoom
location to be too small to be shown at the resolution of the overview win-
dow, but a (red) marker identiﬁes the location.

Different kinds of zoom are necessary too. Zooming is not just magni-
ﬁcation for large datasets, it entails showing different levels of detail —
the term logical zooming (where there is an obvious default for what addi-
tional detail should be shown on zooming in) or semantic zooming (where
the level of information shown as you zoom in depends on the meaning to
be imparted) may be used in this case. (See also Stolte et al. (2002) for
more on these issues.) A further alternative, object zooming, is to zoom
only certain kinds of object, for instance either just the edges in a graph
or just the vertices.

Censored Zooming

Cells with small counts in mosaic plots need to be dealt with in other
ways. One approach, censored zooming, has been introduced by Hofmann
for ﬂuctuation diagrams, a version of mosaic plots (see also Section 5.4.5).
Each cell in a ﬂuctuation diagram is allocated the same amount of space,
and the cell with the maximum frequency ﬁlls its space completely, thus
ﬁxing the scale for the rest of the diagram. You can then interactively
adjust the scaling so that all cells with frequencies higher than a ceiling
value ﬁll their spaces completely and the remainder are drawn in pro-
portion to their frequencies. By progressively lowering the limiting ceil-
ing value, more and more of the smaller cells become visible. For ceiling-
censored zooming, the affected cells are bordered in red.

Consider a ﬂuctuation diagram of four variables (Marital Status, Re-
gion, No. of Children, and Gender) of the US Census dataset with 5, 4, 10,
2 categories, respectively, making 400 cells in all (Figure 4.17), of which
146 are empty. For large datasets, the cell-occupancy distribution is often

94

4 Interacting with Graphics

Divorced

Married

Never married

Separated

Widowed

t
s
e
w
d
M

i

t
s
a
E
h
t
r
o
N

h
t
u
o
S

t
s
e
W

f
e
m
a
l
e

m
a
l
e

f
e
m
a
l
e

m
a
l
e

f
e
m
a
l
e

m
a
l
e

f
e
m
a
l
e

m
a
l
e

0 1 2 3 4 …

0 1 2 3 4 …

0 1 2 3 4 …

0 1 2 3 4 …

0 1 2 3 4 …

Fig. 4.17. A ﬂuctuation diagram from the Census dataset. Marital Status x Region
x No. of Children x Gender. Many combinations are empty or rarely occur.

highly concentrated with most of the data in some 10% of the cells (in this
case, more than 80% of the data are in fewer than 10% of the cells — 39
combinations). Assuming that a window of about 200 by 300 pixels were
used, then each cell could have a maximum of 70 pixels. Any cell with
a frequency of less than 1/140th of the maximum (assuming rounding to
the nearest pixel is possible) would not be drawn. Because the difference
between empty cells and non-empty cells can be an important distinction,
it seems advisable to give non-empty cells at least a pixel, but this means
that “small” cells cannot be distinguished from one another.

The biggest cell in Figure 4.17 has around 7.3% of the data, about
4,600 cases, so that no cell with frequency less than 30 would be drawn
with more than a pixel. Slightly bigger cells would be drawn with similar
size. Lowering the ceiling value to 235 (i.e., that any cell with 235 or more
cases completely ﬁlls its 70 pixels) ensures that the smaller cells can be
compared visually with one another, see Figure 4.18.

Invisibility of small cells is not necessarily a disadvantage, as they
may otherwise distract from major data features, and another form of

Divorced

Married

Never married

Separated

Widowed

4.4 Interaction and Large Datasets

95

t
s
e
w
d
M

i

t
s
a
E
h
t
r
o
N

h
t
u
o
S

t
s
e
W

f
e
m
a
l
e

m
a
l
e

f
e
m
a
l
e

m
a
l
e

f
e
m
a
l
e

m
a
l
e

f
e
m
a
l
e

m
a
l
e

0 1 2 3 4 …

0 1 2 3 4 …

0 1 2 3 4 …

0 1 2 3 4 …

0 1 2 3 4 …

Fig. 4.18. Ceiling-censored zooming. The same plot as Figure 4.17, but with a
ceiling of 235. Cells with more than 235 cases are bordered in red. Now the distri-
butions for “Separated” are clearly visible. Before they could not be distinguished.

censored zooming, ﬂoor zooming, is used to mask all cells below a speciﬁed
“ﬂoor” size.

Finally, it may be informative to compare small levels of highlighting
and this would beneﬁt from yet another form of zooming. Suppose that
rates of marital separation in different subgroups of the population are
being studied. The difference between 0.5% and 1.5% is relatively big,
but yet barely visible, if at all, see Figure 4.19. These differences have
to be displayed so that they can be judged without losing context. Quan-
tum zooming would be an appropriate name (now all that is needed is to
design and implement the method).

Shneiderman’s mantra, quoted at the beginning of this section, is one
central part of the story, but zooming has a bigger role to play than that.
The larger the dataset, the more zooming is likely to be needed, and the
more different kinds of zooming are needed.

96

4 Interacting with Graphics

Marital Status

Gender

Single (n.m.)

Married

Separated

Divorced

Widowed

•

female

male

Fig. 4.19. The 855 (ca. 1%) of respondents in the Bowling Alone dataset who are
recorded as being separated have been selected in the plot of marital status on the
left. The rate for women (1.5%) is three times that for men (0.5%) (right-hand plot).

Sorting

Although sorting is a basic idea, it is an extremely powerful tool. You
can sort the categories in a bar chart, the axes in a parallel coordinates
display, or the variables in a mosaic plot. But how should anyone sort
a display? Detailed provision using command lines or dialog boxes is all
very well (and command lines are essential for repetitive tasks), but what
about sorting “on the ﬂy”? One way to sort categories is by the current se-
lection according to the graphic form, either barchart to sort by absolute
values or spineplot to sort by proportions. The reasoning is that the sort-
ing you want to see is the one associated with the current selection. The
follow-up is that you need to know on what criteria a particular display
has been sorted and this information should be automatically recorded
and included.

Sorting options are taken for granted in many statistical operations,
and for small datasets you can — any sorting algorithm will sort a small
number of cases instantaneously. When datasets become large, sorting
methods become more of an issue. Any old algorithm is not enough and
speed is of the essence. Whether it is sorting continuous data for high-
lighting in boxplots or reordering categories in barcharts or mosaic plots,
the results should be available instantaneously and comprehensibly.

Large datasets affect sorting in other, more critical ways. Any display
for a variable with many categories will have to be sorted. Boxplots drawn
side-by-side for three different groups can be easily compared by eye,
whatever the ordering of the groups. When there are even half a dozen
groups, this becomes much more difﬁcult and with 20 groups impossible.
Figure 4.20 shows some logged ﬁnancial transaction data in boxplots by
branch for just under half a million transactions. It would be helpful to
sort them by median or possibly by maximum and to take account of the
number of cases in each group (which here varies from 28 to 190,000!).

4.4 Interaction and Large Datasets

97

(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)(cid:2)
(cid:2)
(cid:2)(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)(cid:2)(cid:2)(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)(cid:2)
(cid:2)(cid:2)
(cid:2)
(cid:2)(cid:2)
(cid:2)(cid:2)
(cid:2)
(cid:2)(cid:2)(cid:2)(cid:2)
(cid:2)(cid:2)
(cid:2)
(cid:2)(cid:2)
(cid:2)
(cid:2)(cid:2)(cid:2)
(cid:2)(cid:2)(cid:2)
(cid:2)
(cid:2)
(cid:2)(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)(cid:2)(cid:2)(cid:2)(cid:2)(cid:2)(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)(cid:2)(cid:2)(cid:2)
(cid:2)
(cid:2)(cid:2)
(cid:2)(cid:2)
(cid:2)(cid:2)
(cid:2)
(cid:2)(cid:2)
(cid:2)(cid:2)(cid:2)(cid:2)(cid:2)(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)(cid:2)(cid:2)(cid:2)(cid:2)(cid:2)(cid:2)(cid:2)
(cid:2)
(cid:2)
(cid:2)(cid:2)(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)(cid:2)(cid:2)
(cid:2)(cid:2)
(cid:2)(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)(cid:2)(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)(cid:2)
(cid:2)(cid:2)
(cid:2)
(cid:2)
(cid:2)(cid:2)
(cid:2)(cid:2)(cid:2)(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)(cid:2)
(cid:2)(cid:2)(cid:2)(cid:2)
(cid:2)
(cid:2)(cid:2)
(cid:2)
(cid:2)(cid:2)
(cid:2)
(cid:2)
(cid:2)(cid:2)
(cid:2)(cid:2)
(cid:2)
(cid:2)
(cid:2)(cid:2)(cid:2)
(cid:2)(cid:2)(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)(cid:2)(cid:2)(cid:2)(cid:2)(cid:2)
(cid:2)
(cid:2)
(cid:2)(cid:2)
(cid:2)(cid:2)(cid:2)(cid:2)
(cid:2)
(cid:2)(cid:2)(cid:2)(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)(cid:2)
(cid:2)(cid:2)
(cid:2)
(cid:2)
(cid:2)(cid:2)(cid:2)
(cid:2)
(cid:2)
(cid:2)(cid:2)(cid:2)
(cid:2)(cid:2)
(cid:2)(cid:2)(cid:2)(cid:2)
(cid:2)
(cid:2)(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)(cid:2)(cid:2)(cid:2)(cid:2)(cid:2)(cid:2)(cid:2)(cid:2)(cid:2)(cid:2)(cid:2)(cid:2)
(cid:2)
(cid:2)
(cid:2)(cid:2)
(cid:2)
(cid:2)(cid:2)
(cid:2)
(cid:2)
(cid:2)(cid:2)
(cid:2)(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)(cid:2)(cid:2)(cid:2)
(cid:2)
(cid:2)(cid:2)
(cid:2)(cid:2)(cid:2)(cid:2)(cid:2)(cid:2)(cid:2)(cid:2)(cid:2)(cid:2)(cid:2)(cid:2)(cid:2)(cid:2)(cid:2)(cid:2)(cid:2)(cid:2)(cid:2)(cid:2)(cid:2)(cid:2)(cid:2)(cid:2)(cid:2)(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)(cid:2)
(cid:2)
(cid:2)
(cid:2)(cid:2)(cid:2)(cid:2)(cid:2)(cid:2)(cid:2)(cid:2)(cid:2)
(cid:2)
(cid:2)(cid:2)(cid:2)(cid:2)
(cid:2)(cid:2)
(cid:2)
(cid:2)(cid:2)(cid:2)(cid:2)(cid:2)(cid:2)(cid:2)(cid:2)(cid:2)(cid:2)(cid:2)(cid:2)(cid:2)(cid:2)(cid:2)(cid:2)(cid:2)
(cid:2)(cid:2)(cid:2)
(cid:2)(cid:2)
(cid:2)
(cid:2)(cid:2)(cid:2)(cid:2)(cid:2)(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)(cid:2)(cid:2)(cid:2)(cid:2)(cid:2)(cid:2)
(cid:2)(cid:2)(cid:2)(cid:2)
(cid:2)(cid:2)
(cid:2)(cid:2)(cid:2)(cid:2)(cid:2)(cid:2)(cid:2)(cid:2)(cid:2)(cid:2)(cid:2)(cid:2)(cid:2)(cid:2)(cid:2)(cid:2)(cid:2)(cid:2)
(cid:2)(cid:2)(cid:2)(cid:2)(cid:2)(cid:2)(cid:2)(cid:2)(cid:2)(cid:2)(cid:2)
(cid:2)(cid:2)(cid:2)(cid:2)(cid:2)(cid:2)(cid:2)(cid:2)(cid:2)(cid:2)(cid:2)(cid:2)(cid:2)(cid:2)
(cid:2)(cid:2)
(cid:2)
(cid:2)(cid:2)(cid:2)(cid:2)
(cid:2)
(cid:2)
(cid:2)(cid:2)(cid:2)(cid:2)(cid:2)(cid:2)(cid:2)
(cid:2)
(cid:2)(cid:2)(cid:2)
(cid:2)(cid:2)(cid:2)(cid:2)(cid:2)(cid:2)(cid:2)(cid:2)(cid:2)(cid:2)(cid:2)(cid:2)(cid:2)(cid:2)(cid:2)(cid:2)(cid:2)(cid:2)(cid:2)(cid:2)(cid:2)(cid:2)(cid:2)(cid:2)(cid:2)(cid:2)(cid:2)(cid:2)(cid:2)(cid:2)(cid:2)(cid:2)(cid:2)(cid:2)(cid:2)(cid:2)(cid:2)(cid:2)(cid:2)(cid:2)(cid:2)(cid:2)(cid:2)(cid:2)(cid:2)(cid:2)(cid:2)(cid:2)(cid:2)(cid:2)(cid:2)(cid:2)(cid:2)(cid:2)(cid:2)(cid:2)(cid:2)(cid:2)(cid:2)(cid:2)(cid:2)(cid:2)(cid:2)(cid:2)(cid:2)(cid:2)(cid:2)(cid:2)(cid:2)(cid:2)(cid:2)(cid:2)(cid:2)(cid:2)(cid:2)(cid:2)(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)(cid:2)(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)(cid:2)
(cid:2)
(cid:2)(cid:2)(cid:2)(cid:2)(cid:2)(cid:2)(cid:2)(cid:2)(cid:2)(cid:2)(cid:2)(cid:2)(cid:2)(cid:2)(cid:2)(cid:2)(cid:2)(cid:2)(cid:2)(cid:2)(cid:2)(cid:2)(cid:2)(cid:2)(cid:2)(cid:2)(cid:2)(cid:2)(cid:2)(cid:2)(cid:2)(cid:2)(cid:2)
(cid:2)(cid:2)
(cid:2)(cid:2)(cid:2)
(cid:2)(cid:2)(cid:2)(cid:2)(cid:2)(cid:2)(cid:2)(cid:2)
(cid:2)
(cid:2)(cid:2)(cid:2)
(cid:2)(cid:2)
(cid:2)
(cid:2)
(cid:2)(cid:2)(cid:2)
(cid:2)(cid:2)(cid:2)(cid:2)(cid:2)(cid:2)(cid:2)(cid:2)(cid:2)(cid:2)(cid:2)(cid:2)(cid:2)(cid:2)(cid:2)(cid:2)(cid:2)(cid:2)(cid:2)(cid:2)(cid:2)(cid:2)(cid:2)(cid:2)(cid:2)(cid:2)(cid:2)(cid:2)(cid:2)(cid:2)(cid:2)(cid:2)(cid:2)(cid:2)(cid:2)(cid:2)(cid:2)(cid:2)(cid:2)(cid:2)(cid:2)(cid:2)(cid:2)(cid:2)(cid:2)(cid:2)(cid:2)(cid:2)(cid:2)(cid:2)(cid:2)(cid:2)(cid:2)(cid:2)(cid:2)(cid:2)(cid:2)(cid:2)(cid:2)(cid:2)(cid:2)(cid:2)(cid:2)(cid:2)(cid:2)(cid:2)(cid:2)(cid:2)(cid:2)(cid:2)(cid:2)(cid:2)(cid:2)(cid:2)(cid:2)(cid:2)(cid:2)(cid:2)(cid:2)(cid:2)(cid:2)(cid:2)(cid:2)(cid:2)(cid:2)(cid:2)(cid:2)(cid:2)
(cid:2)(cid:2)(cid:2)(cid:2)(cid:2)(cid:2)
(cid:2)(cid:2)(cid:2)(cid:2)(cid:2)(cid:2)(cid:2)(cid:2)(cid:2)(cid:2)(cid:2)(cid:2)(cid:2)(cid:2)(cid:2)(cid:2)
(cid:2)(cid:2)(cid:2)(cid:2)(cid:2)(cid:2)(cid:2)(cid:2)(cid:2)(cid:2)(cid:2)(cid:2)(cid:2)(cid:2)(cid:2)(cid:2)
(cid:2)(cid:2)(cid:2)(cid:2)(cid:2)(cid:2)(cid:2)(cid:2)(cid:2)(cid:2)(cid:2)(cid:2)(cid:2)(cid:2)(cid:2)(cid:2)(cid:2)(cid:2)(cid:2)(cid:2)(cid:2)(cid:2)(cid:2)(cid:2)(cid:2)(cid:2)(cid:2)(cid:2)(cid:2)(cid:2)(cid:2)(cid:2)(cid:2)(cid:2)(cid:2)(cid:2)(cid:2)(cid:2)(cid:2)(cid:2)(cid:2)(cid:2)(cid:2)(cid:2)(cid:2)(cid:2)(cid:2)(cid:2)(cid:2)(cid:2)(cid:2)(cid:2)(cid:2)(cid:2)(cid:2)(cid:2)(cid:2)(cid:2)(cid:2)(cid:2)(cid:2)(cid:2)(cid:2)(cid:2)(cid:2)(cid:2)(cid:2)(cid:2)(cid:2)(cid:2)(cid:2)(cid:2)(cid:2)(cid:2)(cid:2)(cid:2)(cid:2)(cid:2)(cid:2)(cid:2)(cid:2)(cid:2)(cid:2)(cid:2)(cid:2)(cid:2)
(cid:2)(cid:2)
(cid:2)(cid:2)(cid:2)(cid:2)(cid:2)(cid:2)
(cid:2)(cid:2)
(cid:2)(cid:2)(cid:2)(cid:2)(cid:2)
(cid:2)(cid:2)(cid:2)
(cid:2)(cid:2)(cid:2)(cid:2)(cid:2)(cid:2)(cid:2)
(cid:2)
(cid:2)(cid:2)(cid:2)(cid:2)(cid:2)(cid:2)(cid:2)(cid:2)(cid:2)(cid:2)(cid:2)(cid:2)(cid:2)(cid:2)(cid:2)(cid:2)(cid:2)(cid:2)(cid:2)(cid:2)(cid:2)(cid:2)(cid:2)(cid:2)(cid:2)(cid:2)(cid:2)(cid:2)(cid:2)(cid:2)(cid:2)(cid:2)(cid:2)(cid:2)
(cid:2)(cid:2)(cid:2)(cid:2)(cid:2)(cid:2)(cid:2)
(cid:2)(cid:2)(cid:2)(cid:2)(cid:2)(cid:2)(cid:2)(cid:2)(cid:2)(cid:2)(cid:2)(cid:2)(cid:2)(cid:2)(cid:2)(cid:2)(cid:2)(cid:2)(cid:2)(cid:2)
(cid:2)(cid:2)(cid:2)(cid:2)(cid:2)(cid:2)(cid:2)(cid:2)(cid:2)(cid:2)(cid:2)(cid:2)(cid:2)(cid:2)(cid:2)(cid:2)(cid:2)
(cid:2)(cid:2)(cid:2)(cid:2)(cid:2)
(cid:2)(cid:2)
(cid:2)
(cid:2)(cid:2)(cid:2)(cid:2)(cid:2)(cid:2)(cid:2)(cid:2)(cid:2)(cid:2)(cid:2)(cid:2)(cid:2)(cid:2)(cid:2)(cid:2)(cid:2)(cid:2)(cid:2)(cid:2)(cid:2)(cid:2)(cid:2)(cid:2)(cid:2)(cid:2)(cid:2)(cid:2)(cid:2)
(cid:2)(cid:2)(cid:2)
(cid:2)(cid:2)(cid:2)(cid:2)(cid:2)(cid:2)(cid:2)(cid:2)(cid:2)(cid:2)(cid:2)(cid:2)(cid:2)(cid:2)(cid:2)(cid:2)(cid:2)(cid:2)(cid:2)(cid:2)(cid:2)(cid:2)(cid:2)
(cid:2)
(cid:2)(cid:2)(cid:2)(cid:2)(cid:2)(cid:2)(cid:2)
(cid:2)(cid:2)(cid:2)(cid:2)
(cid:2)
(cid:2)(cid:2)(cid:2)
(cid:2)(cid:2)(cid:2)(cid:2)(cid:2)
(cid:2)(cid:2)(cid:2)(cid:2)(cid:2)(cid:2)(cid:2)(cid:2)(cid:2)(cid:2)(cid:2)(cid:2)(cid:2)(cid:2)(cid:2)(cid:2)(cid:2)(cid:2)(cid:2)(cid:2)
(cid:2)(cid:2)(cid:2)
(cid:2)
(cid:2)(cid:2)
(cid:2)
(cid:2)(cid:2)
(cid:2)
(cid:2)
(cid:2)(cid:2)
(cid:2)(cid:2)(cid:2)(cid:2)(cid:2)(cid:2)(cid:2)
(cid:2)(cid:2)(cid:2)
(cid:2)(cid:2)(cid:2)(cid:2)
(cid:2)
(cid:2)(cid:2)(cid:2)(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)(cid:2)(cid:2)(cid:2)
(cid:2)
(cid:2)(cid:2)
(cid:2)(cid:2)(cid:2)
(cid:2)
(cid:2)
(cid:2)(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)(cid:2)(cid:2)(cid:2)(cid:2)
(cid:2)

(cid:2)
(cid:2)
(cid:2)
(cid:2)(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)(cid:2)(cid:2)
(cid:2)
(cid:2)
(cid:2)(cid:2)(cid:2)(cid:2)(cid:2)
(cid:2)(cid:2)(cid:2)
(cid:2)(cid:2)
(cid:2)(cid:2)(cid:2)
(cid:2)
(cid:2)(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)(cid:2)
(cid:2)(cid:2)
(cid:2)(cid:2)(cid:2)(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)(cid:2)(cid:2)(cid:2)(cid:2)(cid:2)
(cid:2)(cid:2)(cid:2)(cid:2)(cid:2)(cid:2)
(cid:2)
(cid:2)
(cid:2)(cid:2)(cid:2)
(cid:2)(cid:2)(cid:2)(cid:2)(cid:2)(cid:2)(cid:2)(cid:2)
(cid:2)(cid:2)(cid:2)(cid:2)(cid:2)(cid:2)
(cid:2)
(cid:2)(cid:2)
(cid:2)
(cid:2)(cid:2)(cid:2)(cid:2)(cid:2)(cid:2)(cid:2)(cid:2)(cid:2)(cid:2)(cid:2)(cid:2)(cid:2)(cid:2)(cid:2)(cid:2)(cid:2)
(cid:2)(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)(cid:2)
(cid:2)(cid:2)(cid:2)(cid:2)(cid:2)(cid:2)(cid:2)(cid:2)(cid:2)
(cid:2)(cid:2)(cid:2)
(cid:2)(cid:2)(cid:2)(cid:2)(cid:2)(cid:2)(cid:2)(cid:2)(cid:2)(cid:2)(cid:2)(cid:2)(cid:2)(cid:2)(cid:2)(cid:2)(cid:2)(cid:2)(cid:2)(cid:2)(cid:2)(cid:2)(cid:2)(cid:2)(cid:2)(cid:2)(cid:2)(cid:2)
(cid:2)(cid:2)
(cid:2)(cid:2)(cid:2)(cid:2)(cid:2)(cid:2)(cid:2)(cid:2)(cid:2)(cid:2)(cid:2)(cid:2)(cid:2)(cid:2)(cid:2)(cid:2)
(cid:2)(cid:2)(cid:2)(cid:2)
(cid:2)(cid:2)
(cid:2)(cid:2)(cid:2)(cid:2)
(cid:2)
(cid:2)(cid:2)(cid:2)
(cid:2)(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)(cid:2)(cid:2)(cid:2)
(cid:2)(cid:2)
(cid:2)

(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)(cid:2)
(cid:2)
(cid:2)
(cid:2)(cid:2)
(cid:2)
(cid:2)(cid:2)
(cid:2)
(cid:2)
(cid:2)(cid:2)(cid:2)
(cid:2)(cid:2)
(cid:2)(cid:2)(cid:2)
(cid:2)
(cid:2)
(cid:2)(cid:2)
(cid:2)(cid:2)
(cid:2)(cid:2)
(cid:2)
(cid:2)(cid:2)
(cid:2)
(cid:2)
(cid:2)(cid:2)(cid:2)
(cid:2)(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)(cid:2)
(cid:2)
(cid:2)
(cid:2)(cid:2)(cid:2)(cid:2)
(cid:2)(cid:2)(cid:2)
(cid:2)
(cid:2)(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)(cid:2)(cid:2)(cid:2)(cid:2)(cid:2)(cid:2)(cid:2)(cid:2)(cid:2)(cid:2)
(cid:2)(cid:2)(cid:2)
(cid:2)(cid:2)(cid:2)(cid:2)(cid:2)(cid:2)
(cid:2)(cid:2)(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)(cid:2)

(cid:2)(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)(cid:2)(cid:2)(cid:2)(cid:2)
(cid:2)(cid:2)
(cid:2)

(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)(cid:2)
(cid:2)
(cid:2)
(cid:2)(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)(cid:2)
(cid:2)
(cid:2)
(cid:2)(cid:2)
(cid:2)(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)(cid:2)
(cid:2)(cid:2)(cid:2)
(cid:2)
(cid:2)(cid:2)
(cid:2)(cid:2)(cid:2)
(cid:2)(cid:2)
(cid:2)(cid:2)
(cid:2)(cid:2)
(cid:2)
(cid:2)(cid:2)
(cid:2)
(cid:2)(cid:2)
(cid:2)
(cid:2)
(cid:2)(cid:2)
(cid:2)(cid:2)
(cid:2)
(cid:2)(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)(cid:2)
(cid:2)(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)(cid:2)
(cid:2)
(cid:2)(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)(cid:2)
(cid:2)(cid:2)
(cid:2)(cid:2)(cid:2)
(cid:2)
(cid:2)(cid:2)
(cid:2)(cid:2)
(cid:2)
(cid:2)
(cid:2)(cid:2)(cid:2)(cid:2)
(cid:2)(cid:2)(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)(cid:2)
(cid:2)(cid:2)
(cid:2)(cid:2)
(cid:2)(cid:2)
(cid:2)(cid:2)(cid:2)(cid:2)(cid:2)
(cid:2)
(cid:2)
(cid:2)(cid:2)
(cid:2)(cid:2)(cid:2)(cid:2)
(cid:2)
(cid:2)(cid:2)
(cid:2)
(cid:2)(cid:2)(cid:2)(cid:2)(cid:2)
(cid:2)(cid:2)
(cid:2)(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)

(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)(cid:2)(cid:2)(cid:2)(cid:2)(cid:2)(cid:2)(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)(cid:2)
(cid:2)
(cid:2)(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)(cid:2)
(cid:2)(cid:2)
(cid:2)(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)(cid:2)
(cid:2)
(cid:2)(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)(cid:2)(cid:2)
(cid:2)(cid:2)(cid:2)
(cid:2)
(cid:2)(cid:2)
(cid:2)(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)(cid:2)
(cid:2)(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)(cid:2)(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)(cid:2)
(cid:2)(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)(cid:2)
(cid:2)
(cid:2)
(cid:2)(cid:2)
(cid:2)(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)(cid:2)(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)(cid:2)(cid:2)(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)(cid:2)
(cid:2)
(cid:2)(cid:2)
(cid:2)(cid:2)(cid:2)(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)(cid:2)
(cid:2)
(cid:2)(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)(cid:2)
(cid:2)(cid:2)
(cid:2)(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)(cid:2)
(cid:2)
(cid:2)
(cid:2)(cid:2)
(cid:2)
(cid:2)(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)(cid:2)(cid:2)(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)(cid:2)
(cid:2)(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)(cid:2)
(cid:2)
(cid:2)(cid:2)
(cid:2)
(cid:2)
(cid:2)(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)(cid:2)
(cid:2)
(cid:2)(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)(cid:2)(cid:2)
(cid:2)
(cid:2)(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)(cid:2)
(cid:2)
(cid:2)
(cid:2)(cid:2)
(cid:2)
(cid:2)
(cid:2)(cid:2)(cid:2)(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)(cid:2)(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)(cid:2)
(cid:2)(cid:2)
(cid:2)(cid:2)
(cid:2)(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)(cid:2)(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)(cid:2)
(cid:2)
(cid:2)(cid:2)
(cid:2)
(cid:2)
(cid:2)(cid:2)
(cid:2)(cid:2)
(cid:2)(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)(cid:2)(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)(cid:2)
(cid:2)
(cid:2)
(cid:2)(cid:2)(cid:2)
(cid:2)(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)(cid:2)
(cid:2)
(cid:2)
(cid:2)(cid:2)
(cid:2)(cid:2)
(cid:2)
(cid:2)
(cid:2)(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)(cid:2)
(cid:2)(cid:2)
(cid:2)(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)(cid:2)(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)(cid:2)
(cid:2)
(cid:2)(cid:2)
(cid:2)
(cid:2)
(cid:2)(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)(cid:2)
(cid:2)(cid:2)
(cid:2)
(cid:2)
(cid:2)(cid:2)(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)(cid:2)
(cid:2)
(cid:2)(cid:2)
(cid:2)(cid:2)
(cid:2)
(cid:2)(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)(cid:2)
(cid:2)(cid:2)(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)(cid:2)
(cid:2)(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)(cid:2)
(cid:2)(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)(cid:2)
(cid:2)(cid:2)(cid:2)
(cid:2)(cid:2)(cid:2)
(cid:2)(cid:2)
(cid:2)
(cid:2)(cid:2)
(cid:2)(cid:2)(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)(cid:2)(cid:2)(cid:2)(cid:2)
(cid:2)(cid:2)
(cid:2)
(cid:2)
(cid:2)(cid:2)(cid:2)
(cid:2)
(cid:2)
(cid:2)(cid:2)
(cid:2)
(cid:2)
(cid:2)(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)(cid:2)
(cid:2)(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)(cid:2)
(cid:2)
(cid:2)
(cid:2)(cid:2)
(cid:2)(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)(cid:2)
(cid:2)
(cid:2)
(cid:2)(cid:2)
(cid:2)
(cid:2)(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)(cid:2)
(cid:2)(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)(cid:2)(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)(cid:2)(cid:2)
(cid:2)
(cid:2)
(cid:2)(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)(cid:2)
(cid:2)
(cid:2)(cid:2)
(cid:2)(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)(cid:2)
(cid:2)(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)(cid:2)(cid:2)(cid:2)
(cid:2)
(cid:2)
(cid:2)(cid:2)(cid:2)
(cid:2)
(cid:2)(cid:2)(cid:2)
(cid:2)(cid:2)
(cid:2)(cid:2)(cid:2)(cid:2)
(cid:2)
(cid:2)(cid:2)
(cid:2)(cid:2)
(cid:2)(cid:2)
(cid:2)
(cid:2)(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)(cid:2)
(cid:2)
(cid:2)
(cid:2)(cid:2)(cid:2)(cid:2)
(cid:2)
(cid:2)
(cid:2)(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)(cid:2)
(cid:2)
(cid:2)(cid:2)
(cid:2)
(cid:2)
(cid:2)(cid:2)
(cid:2)(cid:2)
(cid:2)
(cid:2)
(cid:2)(cid:2)
(cid:2)(cid:2)(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)(cid:2)
(cid:2)
(cid:2)(cid:2)(cid:2)
(cid:2)
(cid:2)
(cid:2)(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)(cid:2)
(cid:2)
(cid:2)
(cid:2)(cid:2)
(cid:2)
(cid:2)(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)(cid:2)
(cid:2)
(cid:2)
(cid:2)(cid:2)
(cid:2)
(cid:2)(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)(cid:2)(cid:2)(cid:2)
(cid:2)(cid:2)
(cid:2)
(cid:2)
(cid:2)(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)(cid:2)
(cid:2)
(cid:2)(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)(cid:2)(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)(cid:2)(cid:2)
(cid:2)
(cid:2)
(cid:2)(cid:2)
(cid:2)(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)(cid:2)(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)(cid:2)(cid:2)(cid:2)(cid:2)
(cid:2)(cid:2)
(cid:2)(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)(cid:2)
(cid:2)(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)(cid:2)
(cid:2)
(cid:2)
(cid:2)(cid:2)(cid:2)
(cid:2)
(cid:2)(cid:2)
(cid:2)
(cid:2)
(cid:2)(cid:2)
(cid:2)(cid:2)
(cid:2)
(cid:2)(cid:2)(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)(cid:2)(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)(cid:2)
(cid:2)(cid:2)
(cid:2)(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)(cid:2)(cid:2)(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)(cid:2)
(cid:2)
(cid:2)
(cid:2)(cid:2)
(cid:2)(cid:2)(cid:2)(cid:2)(cid:2)(cid:2)(cid:2)(cid:2)
(cid:2)
(cid:2)
(cid:2)(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)(cid:2)(cid:2)
(cid:2)
(cid:2)(cid:2)
(cid:2)
(cid:2)(cid:2)
(cid:2)
(cid:2)(cid:2)(cid:2)
(cid:2)
(cid:2)
(cid:2)(cid:2)
(cid:2)
(cid:2)(cid:2)
(cid:2)(cid:2)(cid:2)(cid:2)
(cid:2)
(cid:2)
(cid:2)(cid:2)
(cid:2)
(cid:2)(cid:2)
(cid:2)
(cid:2)
(cid:2)(cid:2)(cid:2)
(cid:2)
(cid:2)(cid:2)
(cid:2)(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)(cid:2)(cid:2)(cid:2)(cid:2)
(cid:2)
(cid:2)
(cid:2)(cid:2)(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)(cid:2)(cid:2)
(cid:2)
(cid:2)
(cid:2)(cid:2)(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)(cid:2)
(cid:2)
(cid:2)
(cid:2)(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)(cid:2)(cid:2)
(cid:2)
(cid:2)
(cid:2)(cid:2)(cid:2)(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)(cid:2)(cid:2)(cid:2)(cid:2)(cid:2)(cid:2)(cid:2)
(cid:2)(cid:2)(cid:2)
(cid:2)
(cid:2)(cid:2)
(cid:2)(cid:2)
(cid:2)(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)(cid:2)
(cid:2)(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)(cid:2)(cid:2)(cid:2)(cid:2)(cid:2)(cid:2)(cid:2)(cid:2)(cid:2)(cid:2)(cid:2)
(cid:2)(cid:2)
(cid:2)(cid:2)(cid:2)(cid:2)
(cid:2)(cid:2)(cid:2)(cid:2)(cid:2)(cid:2)
(cid:2)(cid:2)
(cid:2)(cid:2)
(cid:2)(cid:2)(cid:2)(cid:2)(cid:2)
(cid:2)(cid:2)
(cid:2)
(cid:2)(cid:2)(cid:2)
(cid:2)(cid:2)
(cid:2)
(cid:2)(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)(cid:2)
(cid:2)(cid:2)
(cid:2)
(cid:2)(cid:2)(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)(cid:2)
(cid:2)(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)(cid:2)(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)(cid:2)
(cid:2)(cid:2)
(cid:2)
(cid:2)
(cid:2)(cid:2)
(cid:2)(cid:2)(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)(cid:2)
(cid:2)
(cid:2)(cid:2)
(cid:2)(cid:2)(cid:2)(cid:2)
(cid:2)
(cid:2)
(cid:2)(cid:2)
(cid:2)(cid:2)
(cid:2)(cid:2)
(cid:2)(cid:2)
(cid:2)
(cid:2)
(cid:2)(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)(cid:2)(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)(cid:2)(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)(cid:2)(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)(cid:2)
(cid:2)
(cid:2)(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)(cid:2)(cid:2)(cid:2)
(cid:2)(cid:2)
(cid:2)(cid:2)(cid:2)(cid:2)(cid:2)(cid:2)(cid:2)
(cid:2)
(cid:2)(cid:2)(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)(cid:2)(cid:2)(cid:2)
(cid:2)(cid:2)
(cid:2)
(cid:2)
(cid:2)(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)(cid:2)
(cid:2)
(cid:2)
(cid:2)(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)(cid:2)(cid:2)
(cid:2)
(cid:2)(cid:2)
(cid:2)(cid:2)(cid:2)(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)(cid:2)
(cid:2)
(cid:2)(cid:2)(cid:2)
(cid:2)
(cid:2)
(cid:2)(cid:2)(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)(cid:2)
(cid:2)
(cid:2)
(cid:2)(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)(cid:2)
(cid:2)(cid:2)
(cid:2)
(cid:2)(cid:2)
(cid:2)
(cid:2)
(cid:2)(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)(cid:2)
(cid:2)
(cid:2)(cid:2)
(cid:2)(cid:2)(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)(cid:2)(cid:2)
(cid:2)(cid:2)
(cid:2)(cid:2)
(cid:2)(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)(cid:2)
(cid:2)(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)(cid:2)
(cid:2)(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)(cid:2)
(cid:2)
(cid:2)
(cid:2)(cid:2)
(cid:2)
(cid:2)
(cid:2)(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)(cid:2)
(cid:2)
(cid:2)(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)(cid:2)
(cid:2)
(cid:2)
(cid:2)(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)(cid:2)
(cid:2)(cid:2)
(cid:2)
(cid:2)(cid:2)
(cid:2)
(cid:2)
(cid:2)(cid:2)
(cid:2)
(cid:2)(cid:2)
(cid:2)(cid:2)
(cid:2)
(cid:2)
(cid:2)(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)(cid:2)
(cid:2)(cid:2)
(cid:2)(cid:2)
(cid:2)
(cid:2)
(cid:2)(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)(cid:2)
(cid:2)(cid:2)(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)(cid:2)(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)(cid:2)
(cid:2)(cid:2)
(cid:2)
(cid:2)(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)(cid:2)(cid:2)
(cid:2)(cid:2)
(cid:2)(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)(cid:2)
(cid:2)
(cid:2)
(cid:2)(cid:2)
(cid:2)
(cid:2)(cid:2)(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)(cid:2)(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)(cid:2)
(cid:2)
(cid:2)(cid:2)
(cid:2)
(cid:2)(cid:2)
(cid:2)
(cid:2)
(cid:2)(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)(cid:2)(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)(cid:2)(cid:2)
(cid:2)(cid:2)(cid:2)
(cid:2)
(cid:2)(cid:2)
(cid:2)(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)(cid:2)
(cid:2)
(cid:2)(cid:2)(cid:2)(cid:2)(cid:2)(cid:2)(cid:2)
(cid:2)(cid:2)(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)(cid:2)(cid:2)
(cid:2)(cid:2)(cid:2)(cid:2)(cid:2)(cid:2)
(cid:2)
(cid:2)(cid:2)(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)(cid:2)
(cid:2)
(cid:2)(cid:2)(cid:2)
(cid:2)(cid:2)(cid:2)
(cid:2)
(cid:2)(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)(cid:2)
(cid:2)
(cid:2)(cid:2)(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)(cid:2)
(cid:2)
(cid:2)
(cid:2)(cid:2)
(cid:2)(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)(cid:2)
(cid:2)
(cid:2)(cid:2)(cid:2)
(cid:2)
(cid:2)(cid:2)(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)(cid:2)(cid:2)
(cid:2)
(cid:2)(cid:2)
(cid:2)
(cid:2)(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)(cid:2)
(cid:2)(cid:2)
(cid:2)(cid:2)(cid:2)(cid:2)(cid:2)
(cid:2)(cid:2)
(cid:2)(cid:2)(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)(cid:2)
(cid:2)
(cid:2)
(cid:2)(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)(cid:2)(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)(cid:2)(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)(cid:2)
(cid:2)(cid:2)
(cid:2)
(cid:2)(cid:2)(cid:2)(cid:2)(cid:2)
(cid:2)
(cid:2)
(cid:2)(cid:2)(cid:2)
(cid:2)
(cid:2)
(cid:2)(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)(cid:2)(cid:2)(cid:2)
(cid:2)
(cid:2)(cid:2)(cid:2)
(cid:2)(cid:2)(cid:2)
(cid:2)(cid:2)(cid:2)
(cid:2)
(cid:2)
(cid:2)(cid:2)
(cid:2)(cid:2)
(cid:2)
(cid:2)
(cid:2)(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)(cid:2)
(cid:2)(cid:2)(cid:2)
(cid:2)(cid:2)
(cid:2)
(cid:2)(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)(cid:2)
(cid:2)
(cid:2)
(cid:2)(cid:2)
(cid:2)(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)(cid:2)
(cid:2)(cid:2)
(cid:2)(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)(cid:2)
(cid:2)(cid:2)
(cid:2)(cid:2)
(cid:2)(cid:2)
(cid:2)
(cid:2)(cid:2)(cid:2)
(cid:2)(cid:2)
(cid:2)
(cid:2)
(cid:2)(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)(cid:2)
(cid:2)
(cid:2)(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)(cid:2)
(cid:2)
(cid:2)(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)(cid:2)(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)(cid:2)(cid:2)(cid:2)(cid:2)(cid:2)(cid:2)(cid:2)
(cid:2)
(cid:2)
(cid:2)(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)(cid:2)
(cid:2)
(cid:2)(cid:2)(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)(cid:2)
(cid:2)(cid:2)
(cid:2)(cid:2)
(cid:2)(cid:2)
(cid:2)
(cid:2)(cid:2)(cid:2)
(cid:2)(cid:2)(cid:2)
(cid:2)
(cid:2)(cid:2)
(cid:2)
(cid:2)(cid:2)(cid:2)(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)(cid:2)(cid:2)
(cid:2)(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)(cid:2)
(cid:2)
(cid:2)
(cid:2)(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)(cid:2)
(cid:2)
(cid:2)
(cid:2)(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)(cid:2)
(cid:2)
(cid:2)(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)(cid:2)(cid:2)(cid:2)(cid:2)(cid:2)(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)(cid:2)
(cid:2)(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)(cid:2)
(cid:2)
(cid:2)(cid:2)(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)(cid:2)
(cid:2)(cid:2)
(cid:2)
(cid:2)(cid:2)(cid:2)
(cid:2)(cid:2)(cid:2)
(cid:2)
(cid:2)(cid:2)(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)(cid:2)
(cid:2)(cid:2)(cid:2)(cid:2)(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)(cid:2)
(cid:2)
(cid:2)
(cid:2)(cid:2)
(cid:2)
(cid:2)
(cid:2)(cid:2)(cid:2)
(cid:2)
(cid:2)(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)(cid:2)(cid:2)
(cid:2)(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)(cid:2)(cid:2)(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)(cid:2)
(cid:2)(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)(cid:2)(cid:2)
(cid:2)
(cid:2)(cid:2)(cid:2)(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)(cid:2)
(cid:2)
(cid:2)
(cid:2)(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)(cid:2)(cid:2)
(cid:2)
(cid:2)(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)(cid:2)
(cid:2)(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)(cid:2)
(cid:2)(cid:2)
(cid:2)(cid:2)
(cid:2)
(cid:2)
(cid:2)(cid:2)
(cid:2)(cid:2)(cid:2)(cid:2)
(cid:2)(cid:2)
(cid:2)(cid:2)
(cid:2)
(cid:2)(cid:2)(cid:2)
(cid:2)(cid:2)(cid:2)
(cid:2)
(cid:2)
(cid:2)(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)(cid:2)(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)(cid:2)(cid:2)(cid:2)(cid:2)(cid:2)(cid:2)
(cid:2)
(cid:2)(cid:2)(cid:2)
(cid:2)
(cid:2)
(cid:2)(cid:2)
(cid:2)(cid:2)
(cid:2)(cid:2)
(cid:2)(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)(cid:2)(cid:2)
(cid:2)(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)(cid:2)
(cid:2)(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)(cid:2)
(cid:2)(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)(cid:2)
(cid:2)
(cid:2)(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)(cid:2)
(cid:2)
(cid:2)(cid:2)
(cid:2)
(cid:2)(cid:2)
(cid:2)(cid:2)(cid:2)(cid:2)
(cid:2)
(cid:2)(cid:2)
(cid:2)(cid:2)
(cid:2)(cid:2)
(cid:2)(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)(cid:2)
(cid:2)
(cid:2)
(cid:2)(cid:2)
(cid:2)
(cid:2)(cid:2)
(cid:2)(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)(cid:2)
(cid:2)(cid:2)
(cid:2)(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)(cid:2)(cid:2)(cid:2)(cid:2)
(cid:2)(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)(cid:2)
(cid:2)(cid:2)
(cid:2)(cid:2)
(cid:2)
(cid:2)
(cid:2)(cid:2)
(cid:2)(cid:2)(cid:2)
(cid:2)
(cid:2)
(cid:2)(cid:2)(cid:2)(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)(cid:2)
(cid:2)(cid:2)
(cid:2)(cid:2)
(cid:2)(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)(cid:2)
(cid:2)(cid:2)
(cid:2)
(cid:2)(cid:2)(cid:2)
(cid:2)(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)(cid:2)
(cid:2)
(cid:2)(cid:2)
(cid:2)
(cid:2)
(cid:2)(cid:2)
(cid:2)
(cid:2)(cid:2)(cid:2)(cid:2)(cid:2)(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)(cid:2)
(cid:2)
(cid:2)
(cid:2)(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)(cid:2)(cid:2)
(cid:2)
(cid:2)(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)(cid:2)
(cid:2)(cid:2)
(cid:2)
(cid:2)
(cid:2)(cid:2)
(cid:2)
(cid:2)
(cid:2)(cid:2)(cid:2)(cid:2)
(cid:2)(cid:2)
(cid:2)
(cid:2)
(cid:2)(cid:2)
(cid:2)
(cid:2)
(cid:2)(cid:2)(cid:2)
(cid:2)
(cid:2)(cid:2)
(cid:2)(cid:2)
(cid:2)
(cid:2)(cid:2)(cid:2)(cid:2)
(cid:2)(cid:2)
(cid:2)
(cid:2)
(cid:2)(cid:2)(cid:2)
(cid:2)
(cid:2)(cid:2)(cid:2)
(cid:2)(cid:2)(cid:2)(cid:2)(cid:2)(cid:2)
(cid:2)(cid:2)
(cid:2)(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)(cid:2)
(cid:2)
(cid:2)
(cid:2)(cid:2)(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)(cid:2)(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)(cid:2)
(cid:2)(cid:2)
(cid:2)(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)(cid:2)(cid:2)(cid:2)
(cid:2)
(cid:2)(cid:2)
(cid:2)
(cid:2)
(cid:2)(cid:2)(cid:2)(cid:2)
(cid:2)(cid:2)
(cid:2)
(cid:2)
(cid:2)(cid:2)(cid:2)(cid:2)
(cid:2)(cid:2)
(cid:2)(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)(cid:2)(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)(cid:2)
(cid:2)
(cid:2)
(cid:2)(cid:2)
(cid:2)(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)(cid:2)
(cid:2)(cid:2)
(cid:2)
(cid:2)(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)(cid:2)
(cid:2)(cid:2)
(cid:2)(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)(cid:2)
(cid:2)(cid:2)
(cid:2)
(cid:2)(cid:2)
(cid:2)(cid:2)(cid:2)(cid:2)
(cid:2)
(cid:2)(cid:2)
(cid:2)(cid:2)
(cid:2)
(cid:2)
(cid:2)(cid:2)(cid:2)
(cid:2)(cid:2)
(cid:2)(cid:2)
(cid:2)
(cid:2)
(cid:2)(cid:2)(cid:2)(cid:2)(cid:2)
(cid:2)(cid:2)
(cid:2)
(cid:2)
(cid:2)(cid:2)
(cid:2)(cid:2)
(cid:2)(cid:2)
(cid:2)
(cid:2)(cid:2)
(cid:2)
(cid:2)
(cid:2)(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)(cid:2)
(cid:2)
(cid:2)(cid:2)
(cid:2)(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)(cid:2)
(cid:2)
(cid:2)(cid:2)
(cid:2)(cid:2)
(cid:2)
(cid:2)(cid:2)
(cid:2)(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)(cid:2)(cid:2)(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)(cid:2)(cid:2)(cid:2)(cid:2)(cid:2)(cid:2)(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)(cid:2)(cid:2)
(cid:2)
(cid:2)(cid:2)
(cid:2)(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)(cid:2)
(cid:2)
(cid:2)(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)(cid:2)(cid:2)(cid:2)(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)(cid:2)
(cid:2)(cid:2)
(cid:2)
(cid:2)(cid:2)
(cid:2)(cid:2)
(cid:2)
(cid:2)(cid:2)
(cid:2)
(cid:2)(cid:2)
(cid:2)(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)(cid:2)
(cid:2)
(cid:2)(cid:2)(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)(cid:2)(cid:2)(cid:2)(cid:2)(cid:2)(cid:2)
(cid:2)(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)(cid:2)
(cid:2)
(cid:2)(cid:2)
(cid:2)(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)(cid:2)
(cid:2)
(cid:2)(cid:2)
(cid:2)
(cid:2)
(cid:2)(cid:2)
(cid:2)
(cid:2)
(cid:2)(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)(cid:2)
(cid:2)
(cid:2)
(cid:2)(cid:2)
(cid:2)(cid:2)
(cid:2)
(cid:2)(cid:2)(cid:2)
(cid:2)
(cid:2)(cid:2)
(cid:2)(cid:2)
(cid:2)
(cid:2)
(cid:2)(cid:2)
(cid:2)(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)(cid:2)(cid:2)
(cid:2)(cid:2)(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)(cid:2)(cid:2)
(cid:2)(cid:2)(cid:2)
(cid:2)
(cid:2)
(cid:2)(cid:2)
(cid:2)(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)(cid:2)
(cid:2)(cid:2)
(cid:2)(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)(cid:2)
(cid:2)
(cid:2)(cid:2)
(cid:2)(cid:2)
(cid:2)(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)(cid:2)
(cid:2)
(cid:2)(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)(cid:2)
(cid:2)
(cid:2)
(cid:2)(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)(cid:2)(cid:2)(cid:2)
(cid:2)
(cid:2)(cid:2)(cid:2)(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)(cid:2)
(cid:2)(cid:2)
(cid:2)
(cid:2)
(cid:2)(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)(cid:2)(cid:2)
(cid:2)(cid:2)
(cid:2)
(cid:2)(cid:2)
(cid:2)(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)(cid:2)
(cid:2)(cid:2)
(cid:2)(cid:2)
(cid:2)
(cid:2)
(cid:2)(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)(cid:2)
(cid:2)
(cid:2)
(cid:2)(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)(cid:2)
(cid:2)
(cid:2)
(cid:2)(cid:2)
(cid:2)
(cid:2)(cid:2)(cid:2)(cid:2)
(cid:2)
(cid:2)
(cid:2)(cid:2)(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)(cid:2)
(cid:2)(cid:2)(cid:2)
(cid:2)(cid:2)
(cid:2)(cid:2)(cid:2)(cid:2)
(cid:2)
(cid:2)(cid:2)
(cid:2)(cid:2)(cid:2)
(cid:2)(cid:2)
(cid:2)
(cid:2)(cid:2)(cid:2)
(cid:2)(cid:2)
(cid:2)(cid:2)
(cid:2)
(cid:2)
(cid:2)(cid:2)
(cid:2)
(cid:2)(cid:2)
(cid:2)(cid:2)
(cid:2)
(cid:2)
(cid:2)(cid:2)
(cid:2)
(cid:2)
(cid:2)(cid:2)(cid:2)
(cid:2)
(cid:2)
(cid:2)(cid:2)(cid:2)
(cid:2)(cid:2)(cid:2)(cid:2)(cid:2)(cid:2)(cid:2)(cid:2)(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)(cid:2)
(cid:2)(cid:2)
(cid:2)
(cid:2)
(cid:2)(cid:2)(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)(cid:2)(cid:2)
(cid:2)
(cid:2)(cid:2)(cid:2)(cid:2)(cid:2)(cid:2)(cid:2)
(cid:2)(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)(cid:2)(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)(cid:2)
(cid:2)
(cid:2)(cid:2)(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)(cid:2)(cid:2)
(cid:2)
(cid:2)
(cid:2)(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)(cid:2)(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)(cid:2)
(cid:2)(cid:2)
(cid:2)
(cid:2)(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)(cid:2)
(cid:2)(cid:2)(cid:2)
(cid:2)
(cid:2)(cid:2)(cid:2)(cid:2)(cid:2)(cid:2)
(cid:2)(cid:2)(cid:2)
(cid:2)(cid:2)
(cid:2)
(cid:2)
(cid:2)(cid:2)
(cid:2)(cid:2)
(cid:2)
(cid:2)
(cid:2)(cid:2)(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)(cid:2)(cid:2)(cid:2)
(cid:2)(cid:2)(cid:2)(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)(cid:2)(cid:2)
(cid:2)(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)(cid:2)(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)(cid:2)
(cid:2)
(cid:2)(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)(cid:2)
(cid:2)
(cid:2)(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)(cid:2)(cid:2)(cid:2)
(cid:2)(cid:2)
(cid:2)
(cid:2)(cid:2)(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)(cid:2)
(cid:2)(cid:2)
(cid:2)
(cid:2)
(cid:2)(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)(cid:2)(cid:2)(cid:2)
(cid:2)(cid:2)
(cid:2)
(cid:2)(cid:2)(cid:2)(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)(cid:2)(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)(cid:2)
(cid:2)
(cid:2)(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)(cid:2)
(cid:2)
(cid:2)(cid:2)
(cid:2)
(cid:2)
(cid:2)(cid:2)
(cid:2)
(cid:2)
(cid:2)(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)(cid:2)(cid:2)
(cid:2)
(cid:2)(cid:2)
(cid:2)
(cid:2)(cid:2)
(cid:2)(cid:2)(cid:2)(cid:2)(cid:2)
(cid:2)
(cid:2)(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)(cid:2)
(cid:2)(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)(cid:2)
(cid:2)
(cid:2)(cid:2)
(cid:2)
(cid:2)
(cid:2)(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)(cid:2)(cid:2)(cid:2)(cid:2)(cid:2)(cid:2)(cid:2)(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)(cid:2)
(cid:2)
(cid:2)(cid:2)
(cid:2)
(cid:2)
(cid:2)(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)(cid:2)
(cid:2)(cid:2)
(cid:2)(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)(cid:2)(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)(cid:2)(cid:2)
(cid:2)
(cid:2)(cid:2)(cid:2)
(cid:2)
(cid:2)(cid:2)
(cid:2)(cid:2)(cid:2)
(cid:2)
(cid:2)(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)(cid:2)
(cid:2)(cid:2)(cid:2)
(cid:2)
(cid:2)
(cid:2)(cid:2)(cid:2)
(cid:2)
(cid:2)(cid:2)
(cid:2)
(cid:2)
(cid:2)(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)(cid:2)
(cid:2)(cid:2)
(cid:2)(cid:2)
(cid:2)
(cid:2)(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)(cid:2)
(cid:2)(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)(cid:2)(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)(cid:2)
(cid:2)(cid:2)(cid:2)
(cid:2)(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)(cid:2)(cid:2)
(cid:2)(cid:2)
(cid:2)
(cid:2)
(cid:2)(cid:2)
(cid:2)
(cid:2)(cid:2)
(cid:2)
(cid:2)
(cid:2)(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)(cid:2)
(cid:2)(cid:2)(cid:2)
(cid:2)
(cid:2)
(cid:2)(cid:2)
(cid:2)
(cid:2)(cid:2)(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)(cid:2)(cid:2)
(cid:2)
(cid:2)
(cid:2)(cid:2)
(cid:2)
(cid:2)(cid:2)
(cid:2)(cid:2)
(cid:2)
(cid:2)
(cid:2)(cid:2)
(cid:2)
(cid:2)
(cid:2)(cid:2)(cid:2)(cid:2)
(cid:2)(cid:2)
(cid:2)(cid:2)(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)(cid:2)
(cid:2)
(cid:2)
(cid:2)(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)(cid:2)
(cid:2)(cid:2)
(cid:2)(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)(cid:2)
(cid:2)
(cid:2)
(cid:2)(cid:2)
(cid:2)(cid:2)
(cid:2)
(cid:2)(cid:2)(cid:2)
(cid:2)
(cid:2)
(cid:2)(cid:2)
(cid:2)(cid:2)(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)(cid:2)
(cid:2)(cid:2)(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)(cid:2)(cid:2)(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)(cid:2)
(cid:2)
(cid:2)
(cid:2)(cid:2)
(cid:2)(cid:2)(cid:2)
(cid:2)(cid:2)
(cid:2)(cid:2)
(cid:2)
(cid:2)
(cid:2)(cid:2)
(cid:2)
(cid:2)(cid:2)(cid:2)
(cid:2)(cid:2)(cid:2)
(cid:2)(cid:2)
(cid:2)
(cid:2)(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)(cid:2)(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)(cid:2)(cid:2)
(cid:2)
(cid:2)
(cid:2)(cid:2)
(cid:2)
(cid:2)
(cid:2)(cid:2)(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)(cid:2)
(cid:2)
(cid:2)(cid:2)
(cid:2)
(cid:2)
(cid:2)(cid:2)(cid:2)
(cid:2)(cid:2)(cid:2)
(cid:2)
(cid:2)(cid:2)(cid:2)
(cid:2)(cid:2)(cid:2)
(cid:2)
(cid:2)(cid:2)(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)(cid:2)(cid:2)
(cid:2)(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)(cid:2)
(cid:2)(cid:2)
(cid:2)(cid:2)
(cid:2)(cid:2)
(cid:2)(cid:2)
(cid:2)
(cid:2)(cid:2)
(cid:2)
(cid:2)(cid:2)(cid:2)
(cid:2)(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)(cid:2)(cid:2)(cid:2)
(cid:2)
(cid:2)(cid:2)
(cid:2)(cid:2)
(cid:2)
(cid:2)(cid:2)(cid:2)
(cid:2)(cid:2)(cid:2)
(cid:2)
(cid:2)(cid:2)(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)(cid:2)(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)(cid:2)(cid:2)(cid:2)
(cid:2)
(cid:2)
(cid:2)(cid:2)(cid:2)
(cid:2)
(cid:2)(cid:2)
(cid:2)
(cid:2)(cid:2)(cid:2)
(cid:2)
(cid:2)
(cid:2)(cid:2)(cid:2)(cid:2)(cid:2)
(cid:2)
(cid:2)(cid:2)
(cid:2)
(cid:2)
(cid:2)(cid:2)
(cid:2)
(cid:2)
(cid:2)(cid:2)
(cid:2)(cid:2)
(cid:2)
(cid:2)(cid:2)(cid:2)
(cid:2)(cid:2)(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)(cid:2)(cid:2)(cid:2)(cid:2)(cid:2)(cid:2)
(cid:2)(cid:2)(cid:2)
(cid:2)
(cid:2)
(cid:2)(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)(cid:2)(cid:2)(cid:2)
(cid:2)
(cid:2)
(cid:2)(cid:2)(cid:2)(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)(cid:2)(cid:2)(cid:2)(cid:2)
(cid:2)(cid:2)
(cid:2)
(cid:2)(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)(cid:2)
(cid:2)
(cid:2)(cid:2)
(cid:2)
(cid:2)
(cid:2)(cid:2)(cid:2)(cid:2)(cid:2)
(cid:2)
(cid:2)(cid:2)(cid:2)
(cid:2)
(cid:2)
(cid:2)(cid:2)
(cid:2)
(cid:2)(cid:2)(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)(cid:2)(cid:2)(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)(cid:2)(cid:2)
(cid:2)
(cid:2)
(cid:2)(cid:2)
(cid:2)(cid:2)(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)(cid:2)
(cid:2)(cid:2)
(cid:2)(cid:2)
(cid:2)(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)(cid:2)
(cid:2)(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)(cid:2)(cid:2)
(cid:2)
(cid:2)
(cid:2)(cid:2)
(cid:2)(cid:2)(cid:2)(cid:2)
(cid:2)
(cid:2)
(cid:2)(cid:2)
(cid:2)(cid:2)(cid:2)(cid:2)
(cid:2)(cid:2)
(cid:2)
(cid:2)(cid:2)
(cid:2)
(cid:2)(cid:2)
(cid:2)
(cid:2)(cid:2)(cid:2)(cid:2)(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)(cid:2)(cid:2)(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)(cid:2)(cid:2)
(cid:2)
(cid:2)(cid:2)(cid:2)
(cid:2)
(cid:2)(cid:2)(cid:2)
(cid:2)
(cid:2)
(cid:2)(cid:2)(cid:2)
(cid:2)
(cid:2)(cid:2)
(cid:2)
(cid:2)(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)(cid:2)
(cid:2)
(cid:2)(cid:2)
(cid:2)
(cid:2)(cid:2)
(cid:2)(cid:2)
(cid:2)
(cid:2)(cid:2)
(cid:2)
(cid:2)
(cid:2)(cid:2)(cid:2)(cid:2)(cid:2)(cid:2)
(cid:2)(cid:2)(cid:2)
(cid:2)(cid:2)
(cid:2)(cid:2)
(cid:2)
(cid:2)
(cid:2)(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)(cid:2)
(cid:2)(cid:2)(cid:2)(cid:2)(cid:2)
(cid:2)(cid:2)
(cid:2)
(cid:2)
(cid:2)(cid:2)
(cid:2)
(cid:2)
(cid:2)(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)(cid:2)(cid:2)(cid:2)
(cid:2)(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)(cid:2)(cid:2)(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)(cid:2)(cid:2)
(cid:2)
(cid:2)
(cid:2)(cid:2)(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)(cid:2)
(cid:2)(cid:2)(cid:2)
(cid:2)
(cid:2)(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)(cid:2)(cid:2)(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)(cid:2)
(cid:2)(cid:2)
(cid:2)
(cid:2)(cid:2)
(cid:2)
(cid:2)(cid:2)
(cid:2)(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)(cid:2)
(cid:2)(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)(cid:2)
(cid:2)
(cid:2)
(cid:2)(cid:2)
(cid:2)(cid:2)(cid:2)(cid:2)
(cid:2)(cid:2)(cid:2)(cid:2)
(cid:2)
(cid:2)(cid:2)
(cid:2)(cid:2)
(cid:2)
(cid:2)
(cid:2)(cid:2)
(cid:2)(cid:2)(cid:2)
(cid:2)
(cid:2)
(cid:2)(cid:2)
(cid:2)(cid:2)
(cid:2)
(cid:2)
(cid:2)(cid:2)
(cid:2)(cid:2)(cid:2)(cid:2)(cid:2)(cid:2)
(cid:2)(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)(cid:2)
(cid:2)(cid:2)
(cid:2)
(cid:2)(cid:2)(cid:2)(cid:2)
(cid:2)(cid:2)
(cid:2)
(cid:2)
(cid:2)(cid:2)(cid:2)
(cid:2)(cid:2)
(cid:2)
(cid:2)(cid:2)(cid:2)
(cid:2)
(cid:2)
(cid:2)(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)(cid:2)
(cid:2)(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)(cid:2)(cid:2)
(cid:2)(cid:2)(cid:2)
(cid:2)
(cid:2)
(cid:2)(cid:2)
(cid:2)(cid:2)
(cid:2)
(cid:2)(cid:2)(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)(cid:2)
(cid:2)(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)(cid:2)
(cid:2)(cid:2)(cid:2)(cid:2)
(cid:2)
(cid:2)(cid:2)(cid:2)(cid:2)
(cid:2)(cid:2)(cid:2)
(cid:2)
(cid:2)(cid:2)
(cid:2)(cid:2)(cid:2)
(cid:2)
(cid:2)
(cid:2)(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)(cid:2)
(cid:2)(cid:2)
(cid:2)
(cid:2)(cid:2)
(cid:2)(cid:2)
(cid:2)(cid:2)
(cid:2)
(cid:2)(cid:2)
(cid:2)
(cid:2)(cid:2)
(cid:2)
(cid:2)(cid:2)(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)(cid:2)
(cid:2)
(cid:2)
(cid:2)(cid:2)
(cid:2)
(cid:2)(cid:2)
(cid:2)
(cid:2)(cid:2)
(cid:2)(cid:2)
(cid:2)
(cid:2)(cid:2)(cid:2)(cid:2)(cid:2)(cid:2)
(cid:2)
(cid:2)
(cid:2)(cid:2)(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)(cid:2)
(cid:2)(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)(cid:2)
(cid:2)(cid:2)(cid:2)(cid:2)
(cid:2)(cid:2)(cid:2)(cid:2)(cid:2)(cid:2)(cid:2)(cid:2)
(cid:2)(cid:2)
(cid:2)
(cid:2)(cid:2)
(cid:2)
(cid:2)
(cid:2)(cid:2)
(cid:2)(cid:2)
(cid:2)
(cid:2)(cid:2)
(cid:2)(cid:2)
(cid:2)(cid:2)
(cid:2)(cid:2)(cid:2)(cid:2)
(cid:2)
(cid:2)(cid:2)
(cid:2)
(cid:2)(cid:2)
(cid:2)
(cid:2)
(cid:2)(cid:2)(cid:2)
(cid:2)
(cid:2)(cid:2)(cid:2)(cid:2)
(cid:2)(cid:2)(cid:2)
(cid:2)
(cid:2)(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)(cid:2)(cid:2)
(cid:2)(cid:2)(cid:2)
(cid:2)
(cid:2)
(cid:2)(cid:2)
(cid:2)
(cid:2)
(cid:2)(cid:2)
(cid:2)(cid:2)
(cid:2)(cid:2)(cid:2)(cid:2)
(cid:2)
(cid:2)(cid:2)
(cid:2)(cid:2)
(cid:2)(cid:2)
(cid:2)
(cid:2)
(cid:2)(cid:2)(cid:2)(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)(cid:2)
(cid:2)(cid:2)(cid:2)
(cid:2)(cid:2)
(cid:2)
(cid:2)
(cid:2)(cid:2)(cid:2)(cid:2)
(cid:2)
(cid:2)(cid:2)
(cid:2)
(cid:2)
(cid:2)(cid:2)
(cid:2)(cid:2)(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)(cid:2)(cid:2)(cid:2)
(cid:2)(cid:2)(cid:2)
(cid:2)(cid:2)(cid:2)
(cid:2)(cid:2)
(cid:2)
(cid:2)
(cid:2)(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)(cid:2)
(cid:2)(cid:2)
(cid:2)
(cid:2)
(cid:2)(cid:2)(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)(cid:2)
(cid:2)
(cid:2)
(cid:2)(cid:2)
(cid:2)(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)(cid:2)(cid:2)
(cid:2)
(cid:2)
(cid:2)(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)(cid:2)(cid:2)(cid:2)(cid:2)(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)(cid:2)(cid:2)
(cid:2)(cid:2)
(cid:2)
(cid:2)(cid:2)
(cid:2)(cid:2)(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)(cid:2)
(cid:2)
(cid:2)(cid:2)
(cid:2)(cid:2)
(cid:2)(cid:2)(cid:2)
(cid:2)(cid:2)
(cid:2)
(cid:2)(cid:2)(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)(cid:2)
(cid:2)(cid:2)
(cid:2)
(cid:2)(cid:2)
(cid:2)
(cid:2)(cid:2)(cid:2)
(cid:2)(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)(cid:2)
(cid:2)(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)(cid:2)(cid:2)
(cid:2)(cid:2)(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)(cid:2)
(cid:2)(cid:2)(cid:2)(cid:2)(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)(cid:2)
(cid:2)(cid:2)
(cid:2)(cid:2)(cid:2)
(cid:2)
(cid:2)
(cid:2)(cid:2)
(cid:2)
(cid:2)(cid:2)(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)(cid:2)
(cid:2)
(cid:2)(cid:2)(cid:2)
(cid:2)(cid:2)
(cid:2)
(cid:2)(cid:2)
(cid:2)
(cid:2)(cid:2)
(cid:2)
(cid:2)(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)(cid:2)
(cid:2)(cid:2)(cid:2)(cid:2)(cid:2)(cid:2)(cid:2)(cid:2)(cid:2)
(cid:2)(cid:2)(cid:2)
(cid:2)(cid:2)
(cid:2)(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)(cid:2)(cid:2)(cid:2)
(cid:2)
(cid:2)(cid:2)
(cid:2)(cid:2)
(cid:2)
(cid:2)(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)(cid:2)
(cid:2)(cid:2)
(cid:2)(cid:2)
(cid:2)(cid:2)(cid:2)(cid:2)
(cid:2)
(cid:2)
(cid:2)(cid:2)
(cid:2)(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)(cid:2)(cid:2)
(cid:2)
(cid:2)
(cid:2)(cid:2)(cid:2)(cid:2)
(cid:2)(cid:2)(cid:2)
(cid:2)
(cid:2)(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)(cid:2)(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)(cid:2)
(cid:2)
(cid:2)
(cid:2)(cid:2)(cid:2)
(cid:2)(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)(cid:2)
(cid:2)
(cid:2)(cid:2)
(cid:2)
(cid:2)(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)(cid:2)(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)(cid:2)(cid:2)
(cid:2)(cid:2)
(cid:2)(cid:2)
(cid:2)(cid:2)
(cid:2)
(cid:2)
(cid:2)(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)(cid:2)
(cid:2)
(cid:2)(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)(cid:2)(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)(cid:2)
(cid:2)
(cid:2)(cid:2)
(cid:2)
(cid:2)(cid:2)
(cid:2)
(cid:2)(cid:2)
(cid:2)
(cid:2)(cid:2)(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)(cid:2)
(cid:2)
(cid:2)
(cid:2)(cid:2)(cid:2)
(cid:2)(cid:2)(cid:2)(cid:2)
(cid:2)(cid:2)
(cid:2)(cid:2)
(cid:2)
(cid:2)
(cid:2)(cid:2)(cid:2)(cid:2)
(cid:2)
(cid:2)
(cid:2)(cid:2)
(cid:2)
(cid:2)(cid:2)
(cid:2)(cid:2)
(cid:2)
(cid:2)
(cid:2)(cid:2)(cid:2)
(cid:2)(cid:2)
(cid:2)
(cid:2)
(cid:2)(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)(cid:2)
(cid:2)
(cid:2)
(cid:2)(cid:2)(cid:2)
(cid:2)(cid:2)
(cid:2)(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)(cid:2)(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)(cid:2)(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)(cid:2)(cid:2)(cid:2)(cid:2)(cid:2)(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)(cid:2)(cid:2)(cid:2)
(cid:2)
(cid:2)(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)(cid:2)
(cid:2)
(cid:2)(cid:2)(cid:2)(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)(cid:2)
(cid:2)
(cid:2)
(cid:2)(cid:2)(cid:2)(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)(cid:2)
(cid:2)(cid:2)(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)(cid:2)
(cid:2)(cid:2)
(cid:2)
(cid:2)
(cid:2)(cid:2)
(cid:2)
(cid:2)
(cid:2)(cid:2)
(cid:2)
(cid:2)(cid:2)
(cid:2)(cid:2)
(cid:2)
(cid:2)(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)

(cid:2)

(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)
(cid:2)(cid:2)(cid:2)
(cid:2)

(cid:2)(cid:2)
(cid:2)
(cid:2)(cid:2)(cid:2)

Fig. 4.20. Logged amounts of ﬁnancial transaction data in boxplots by branch (for
reasons of conﬁdentiality, the branches are not labelled)

As in Figure 4.20, there are more sorting possibilities with large
datasets. Figure 4.10 showed two sorting options for a barchart with
almost 50 categories (Alaska and Hawaii were not surveyed, while DC
was). Even more sortings can be considered if the possible weightings
of the barchart are taken into account. The data could be weighted by
income, by age, by number of children, or by any other available (appro-
priate) weight. Given so many alternatives, sorting needs to be carefully
managed and monitored so that the user is always informed of current
orderings.

Having a large number of variables leads to new sorting challenges.
The list of variables itself needs to be sorted (probably most proﬁtably by
topic, but also possibly by statistics such as the proportion of missings).
Displays of multiple variables such as mosaic plots and parallel coordi-
nate plots have to be sortable. Any collection of displays on-screen will be
more informative if they can be arranged in a structured way.

Common Scaling

Another way to enhance a collection of displays of variables is to use com-
mon scaling, i.e., give comparable axes the same scale. This can mean
ensuring that the same scale is used for all displays involving a particu-
lar variable or choosing to display a set of different variables of the same
type with a common scale. This is a natural option for parallel coordinate
plots, where variables are often of identical types. A prime example can
be found in Unwin et al. (2003), where residuals from different models
are plotted together on over 300 axes.

98

4 Interacting with Graphics

Multiple Views

Insights are gained by looking at data from several different points of
view. Features that may be apparent in one view may not be visible in
another. If all the information in a large dataset is to be displayed, lots of
different views are needed. Eick and Karr (2002) have written of perspec-
tives, by which they mean sets of views of the data that can be designed
for speciﬁc purposes. This is a valuable approach for repetitive tasks (such
as daily reviews of investments or regular sales reviews), but here the
task is exploring data, interactively working with multiple views: choos-
ing, organising, scaling, and, of course, linking.

The Fistﬁght question from the Bowling Alone dataset is displayed
in Figure 4.4. There are many different variables that might be related:
demographics like gender, age and marital status; sociological ones as
recorded by questions on social habits; but also attitudinal ones as ex-
pressed in opinions on other issues. To be able to ﬁlter through these
quickly and informatively is all to do with organisation and management:
being able to resize, reorder, realign many graphics simultaneously; be-
ing able to group related graphics together; being able to combine groups
of variables together. Combining variables through transformations and
recodings can be valuable, especially when the results can be swiftly and
immediately assessed with graphics. It is then readily apparent whether
a new variable is going to convey additional insights and what adjust-
ments might be worth trying to increase its contribution still further.

4.5 New Interactive Tasks

Much more could be done interactively in data analysis software than is
done at the moment. Many tasks that are particularly relevant for large
datasets could be made faster and more ﬂexible if made interactive.

4.5.1 Subsetting

It is not always necessary to look at the whole of a large dataset. A sample
may be enough for checking overall structure. Some subsets may deserve
deeper individual analyses quite separate from the rest of the dataset.
Deﬁning subsets is a naturally interactive action and implies keeping
track of them, ensuring that appropriate comparisons are made for them,
and managing the analyses. The efﬁcient organisation and management
of variables and analyses is not an interactive task in itself, but only if
this is effectively achieved does interaction become feasible.

4.5 New Interactive Tasks

99

4.5.2 Aggregation and Recoding

Aggregation and the construction of new variables based on the results of
analyses are other frequent tasks in the analysis of large datasets that
beneﬁt from interactive support. Grouping categories of a variable to-
gether is necessary when rarely occurring categories are to be grouped
together into “others” or when the dataset contains multiple options for
the same response. Writing recoding statements is a labour-intensive way
of tackling this, and interactive methods allowing the user to drag groups
together are both simpler and more direct. Studying survey responses by
US State in the Bowling Alone dataset might suggest aggregating the
smaller States into a single group or combining them with geographic
neighbors. Sorting and grouping from a barchart or selecting using a map
are both obvious ways of doing this but imply that the software should
provide an easy and intuitive option to store the result as a new variable.

4.5.3 Transformations

Transforming variables is a common task in all data analyses, but when
few variables are involved it is a simple task with at most some mildly
irritating recoding to do (for instance, combining the four race variables
in the Bowling Alone dataset into one). When there are many variables
and many potentially interesting transformations (e.g., discretising the
income variables in different ways, creating summary scores on related
social variables, combining income and housing variables to produce a
wealth measure), then the burden is far greater. The effort lies in search-
ing for the most useful combination of variables and the most informative
transformations, not in specifying one particular formula. This should be
an interactive task, but current software implementations lag well be-
hind what would really help, probably because of the level of complexity
involved.

4.5.4 Weighting

Large survey datasets are often based on some form of unequal sampling
so that the cases are weighted (e.g., in the PISA study, Adams and Wu
(2002) ). Any statistics calculated have to take account of the weights and
so should any graphics drawn. With area plots, such as histograms and
barcharts, the heights of the bins or bars should be drawn proportional to
the sum of the weights of the cases in the class. For point plots, such as
dotplots or scatterplots, the area of the point representing a case can be
drawn proportional to the weight. This leads to overlapping and overplot-
ting, which can be partially dealt with using alpha-blending or a form of
density estimation (cf. Section 3.5).

100

4 Interacting with Graphics

A B

C D E

F G H

I

J

A B

C D E

F G H

I

J

Fig. 4.21. Barcharts of classes of bank deals. On the left, the numbers in the
classes. On the right, the classes are weighted by turnover.

Large datasets may be weighted for other reasons, too, and the same
data may be informatively weighted in different ways: by amount, by
number of items, by complexity, by whatever nonnegative, additive fea-
ture you wish. Figure 4.21 shows two barcharts from the company bank
deals dataset. The left plot displays the numbers of different classes of
deal. The right plot displays the same deal classes weighted by turnover.
Unfortunately, for reasons of conﬁdentiality, the actual class names can-
not be shown, but the differences between the relative heights in the two
diagrams are striking. Note that the vertical scales are not directly com-
parable here. This will always be the case when comparing two diagrams
with different weightings.

Further examples of these kinds of weighted plots can be found in
Chapter 9 (Figure 9.9 and Figure 9.11) and Chapter 11 (Figure 11.5 and
Figures 11.11 to 11.15).

With data recorded by spatial region, it is useful to be able to display
variables like party election support weighted by the corresponding elec-
torate or illness rates weighted by population. Occasionally, datasets may
be summarised as data cubes, and the cell counts are the weights for their
respective cells. However weights arise, it is necessary for graphics to be
adjusted accordingly, and switching between weightings ought to be an
interactive process, so that the effects are clearly seen. MANET uses drag
and drop for this purpose, which is a natural way of going about it.

4.6 Summary and Future Directions

101

4.5.5 Managing Screen Layout

Larger datasets require more displays, as discussed in Section 1.5.6. Ex-
ploring many variables demands many univariate displays and, needless
to say, many more multivariate options. Scatterplots, trellis plots, mosaic
plots, and parallel coordinate plots take up a lot of screen space, and so do
micromaps and all “small multiples” displays. Several packages tile win-
dows to provide an overview, though they then treat all windows equally,
so that a barchart of two categories and a scatterplot of thousands of
points get allocated the same amount of space. Managing and organising
sets of displays efﬁciently, varying the layout for comparisons, and re-
sizing individual plots to emphasise interesting features all beneﬁt from
software support.

None of these tasks is inherently graphical, but all would be easier
to tackle with interactive user interfaces and with graphical outputs to
monitor the results. It is necessary to be able to switch the focus of anal-
yses smoothly and intelligently while maintaining both the context of the
detailed analyses and an overview of the whole task.

4.6 Summary and Future Directions

To a great extent, the recommendations in this chapter amount to asking
for more of everything for dealing with large datasets:
• more powerful querying;
• more forms of zooming;
• more complex selections;
•

the ability to carry out multiple investigations in parallel (multiple
selections, multiple subsets, multiple zooms).

None of these capabilities are primarily statistical, but they provide es-
sential support for effective data analyses of large datasets.

Some interactive tools do not scale up as well as others, but this does
not present major challenges. Most of the data analysis that can be done
with interactive graphics for small datasets can be carried out for large
datasets, too. The real challenge lies in adding interactive capabilities
to tackle the new organisational and management tasks that arise with
large datasets.

Part II

Applications

5

Multivariate Categorical Data — Mosaic
Plots

Heike Hofmann

Seid umschlungen, Millionen!1

Friedrich Schiller, An die Freude

5.1 Introduction

Categorical displays are fortunately relatively independent of the num-
ber of cases they display. Unfortunately, the number of categories of a
variable can grow with an increase in the number of cases. The challenge
for categorical displays is to deal with large numbers of categories and
with variables with skew marginal distributions. The goal in mind must
be — as always with visual displays — the representation of both global
trends and local features, individuals or small groups not ﬁtting any gen-
eral pattern. In an interactive framework, techniques like reordering and
grouping of categories help to produce clearer images of “what is in the
data”. Querying mechanisms and display variations are used for extract-
ing summarized information.

5.2 Area-based Displays

Categorical data are best displayed in area-based plots. Each cell or bin
of the data is represented by a rectangular area, the size of which is —
in some way — related to the number of cases in the cell it represents.
Mostly this relationship is linear but there are useful variations.

Area-based plots are fairly stable with regard to the absolute num-
bers of cases they represent. As long as the relative proportions between
cells are not affected, the diagram will look exactly the same regardless
of the total number of cases. The difference is that individual cases are
1 Be embraced, you millions!

106

5 Multivariate Categorical Data — Mosaic Plots

represented by smaller areas for higher numbers of cases. This may be-
come a problem in a data analysis when the focus is on an individual or
on a small group of individuals. It can happen that the height or width
of an area representing a small group would be represented by less than
1 pixel of the display, so that the group is not visible unless redmarking
(cf. Section 4.3.7) or some other action is taken. The idea is to protect the
analyst from jumping to false conclusions.

Once this problem is identiﬁed, there are several solutions possible.
Figure 5.1 shows barcharts of 700 cases on the left and 700,000 cases on
the right. The proportions between categories are equivalent, yielding the
same overall picture, i.e., category a is about twice the size of category b,
and half the size of category c. In both barcharts the highlighting shows
all but 20 cases in bin a (corresponding to 10% of the cases in the left
barchart side but only 0.01% in the right), 5 cases in bin b, and 1/4 of
the cases in bin c. Because not all cases in bin a in the right barchart
are highlighted even though it appears to be that way, a warning line
has been added underneath the bin. Bin b on the right is marked the
same way. Here, some cases are highlighted but the area representing
this group is too small to be drawn.

Another solution to the problem of screen resolution would be to ﬁx
a minimal height of 1 pixel whenever at least one case is highlighted (or
only one is not highlighted), thereby graphically over-representing this
piece of information in order not to neglect it. This is only practical, when
the bars themselves are big enough.

Barchart of 700 cases

Barchart of 700,000 cases

a

b

c

a

b

c

Fig. 5.1. Barcharts of 700 cases (left) versus 700,000 cases (right). Proportions
between categories are the same, yielding the same overall picture. Highlighted
are all but 20 cases in bin a, 5 cases in bin b, and 1/4 of the cases in bin c. The 20
cases in the right barchart represent less than 0.03 0/00 and correspond to an area
with a height of less than one pixel — this makes a warning line as shown below
categories a and b necessary.

5.3 Displays and Techniques in One Dimension

107

5.2.1 Weighted Displays and Weights in Datasets

A further issue when working with categorical variables in large datasets
is the format in which the data are stored. It can be efﬁcient to just store
case counts for all the possible combinations (like in a data cube) instead
of storing each case individually, thereby saving both storage space and
main memory without any loss of information. The (in)famous Titanic
data (Dawson; 1995), for example, is reduced from 2201 individual cases
to only 24 non-empty combinations of the four variables. This format is
commonly used in statistical modelling — it is particularly useful if the
sample size is large and all variables involved are categorical. Sparse
tables also beneﬁt from using a weighted data format. With increasing
numbers of variables and categories, it loses its advantage over a mere
listing of individual cases. It is the trade-off between sample size N and
the overall number of categories c1 · c2 · ... · cp (where ci is the number
of categories of variable Xi) that has to be considered. This number of
categories is further reduced in a weighted data format by one for each
combination of categories that have a zero count.
Table 5.1 shows the
trade-off between sample size and number of categories for three very
different datasets.

Software should be able to deal with the data either way.

5.3 Displays and Techniques in One Dimension

With increasing numbers of cases, the numbers of categories tend to in-
crease, too. This can even happen for variables like gender of policy holder
(see Figure 5.2), which you would think could only have two categories.
“Company” and “not known” are understandable; “other” was because the
dataset had not been cleaned ﬁrst.

With increasing numbers of cases, the possibility of individuals not ﬁt-
ting a predeﬁned categorization grows. Usually, the number of those indi-
viduals will be small compared to the overall number of cases. With nom-
inal variables the number of categories increases quite naturally with

Table 5.1. Sample Size and Number of Categories for Three Different Datasets.
(See (Whittaker; 1990) for more information on the Rochdale data.)

Dataset

Sample size

# categories
c1c2...cp

# empty com-
binations

Titanic

Rochdale

2201

665

Internet Usage

10108

32

256
5.55 × 1036

8

165

?

Ratio of
reduction

2201/24 = 91.7

665/91 = 7.3

1.0

108

5 Multivariate Categorical Data — Mosaic Plots

Co

female male

other NN

Fig. 5.2. Barchart of policy holder’s gen-
der in a car insurance dataset. With an
increasing number of cases, the number
of categories increases. Besides the obvi-
ous two categories, there are the categories
company, other, and not known.

a
k
s
a
A

l

a
t
r
e
b
A

l

a
i
r
e
g
A

l

a
n
i
t
n
e
g
r
A

a
n
o
z
i
r
A

s
a
s
n
a
k
r
A

i

a
n
e
m
r
A

a

i
l

a
r
t
s
u
A

a
i
r
t
s
u
A

a
m
a
b
a
A

l

n
a
t
s
i
n
a
h
g
f
A

l
i
z
a
r
B

n
a
t
u
h
B

i

m
u
g
e
B

l

i

a
b
m
u
o
C

l

h
s
i
t
i
r
B

e

l
i

h
C

i

a
n
h
C

i

d
n
u
r
u
B

i

a
n
r
o
f
i
l

a
C

i

a
b
m
o
o
C

l

h
c
e
z
C

a
i
t
a
o
r
C

e
r
a
w
a
e
D

l

k
r
a
m
n
e
D

o
d
a
r
o
o
C

l

a
c
i
R

a
t
s
o
C

t
u
c
i
t
c
e
n
n
o
C

t
p
y
g
E

r
o
d
a
u
c
E

c
i
l

b
u
p
e
R

n
a
c
i
n
m
o
D

i

d
n
a
n
F

l

i

a
d
i
r
o
F

l

e
c
n
a
r
F

e
c
e
e
r
G

i
i

a
w
a
H

i

a
g
r
o
e
G

y
n
a
m
r
e
G

d
n
a
e
c
I

l

y
r
a
g
n
u
H

g
n
o
K

g
n
o
H

o
h
a
d
I

s
i
o
n

i
l
l
I

i

a
d
n
I

a
n
a
d
n
I

i

a
i
s
e
n
o
d
n
I

a
w
o
I

d
n
a
e
r
I

l

l

y
a
t
I

l

e
a
r
s
I

n
a
p
a
J

s
a
s
n
a
K

a
c
i
a
m
a
J

a
y
n
e
K

t
i
a
w
u
K

y
k
c
u
t
n
e
K

a
n
a
i
s
i
u
o
L

i

e
n
a
M

s
i
s
y
a
a
M

l

a
b
o
t
i
n
a
M

l

d
n
a
y
r
a
M

i

n
a
g
h
c
i
M

a
t
o
s
e
n
n
M

i

i

p
p
i
s
s
i
s
s
i
M

i
r
u
o
s
s
i
M

a
n
a
t
n
o
M

o
c
c
o
r
o
M

s
t
t
e
s
u
h
c
a
s
s
a
M

i

i

a
b
m
a
N

a
d
a
v
e
N

k
c
i
w
s
n
u
r
B
w
e
N

e
r
i
h
s
p
m
a
H
w
e
N

k
r
o
Y
w
e
N

y
e
s
r
e
J
w
e
N

o
c
i
x
e
M
w
e
N

a
u
g
a
r
a
c
i
N

l

d
n
a
a
e
Z
w
e
N

l

d
n
a
d
n
u
o
f
w
e
N

a
k
s
a
r
b
e
N

s
d
n
a
l
r
e
h
t
e
N

s
e

l
l
i
t
n
A

s
d
n
a
l
r
e
h
t
e
N

a
n

i
l

o
r
a
C

h
t
r
o
N

n
a
m
O

o
i
r
a
t
n
O

n
o
g
e
r
O

r
e
h
t
O

a
m
a
n
a
P

i

o
h
O

a
m
o
h
a
k
O

l

y
a
w
r
o
N

a
i
t
o
c
S

a
v
o
N

a
t
o
k
a
D
h
t
r
o
N

s
e
i
r
o
t
i
r
r
e
T

t
s
e
w
h
t
r
o
N

i

l

a
n
a
v
y
s
n
n
e
P

a
i
s
s
u
R

i

a
n
a
m
o
R

c
e
b
e
u
Q

o
c
i
R

o
t
r
e
u
P

d
n
a
l
s
I

e
d
o
h
R

e
r
o
p
a
g
n
S

i

a
c
i
r
f
A

h
t
u
o
S

n
a
w
e
h
c
t
a
k
s
a
S

d
n
a
o
P

l

l

a
g
u
t
r
o
P

s
e
n
p
p

i

i
l
i

h
P

d
n
a
l
s
I

d
r
a
w
d
E

e
c
n
i
r
P

a
n

i
l

o
r
a
C

h
t
u
o
S

i

n
a
p
S

n
e
d
e
w
S

a
k
n
a
L

i
r
S

n
a
w
a
T

i

e
e
s
s
e
n
n
e
T

d
n
a
l
r
e
z
t
i

w
S

s
a
x
e
T

d
n
a

l
i

a
h
T

a
i
s
i
n
u
T

y
e
k
r
u
T

a
e
r
o
K

h
t
u
o
S

a
t
o
k
a
D
h
t
u
o
S

h
a
t
U

t
n
o
m
r
e
V

l

a
e
u
z
e
n
e
V

m
o
d
g
n
K

i

d
e
t
i
n
U

i

i

a
n
g
r
i
V

n
o
t
g
n
h
s
a
W

i

.
C
.
D
n
o
t
g
n
h
s
a
W

i

i

i

a
n
g
r
i
V

t
s
e
W

n
o
k
u
Y

n
i
s
n
o
c
s
i
W

i

g
n
m
o
y
W

Fig. 5.3. Barchart of Country, categories are in lexicographic order.

the number of cases. Figure 5.3 shows a barchart of the variable Country
(see Section 1.8.3 for more details on the Internet Usage Data (Kehoe
et al.; 1997)). The bins are very different in size — a few large categories
dominate the picture. The high variability in category sizes, resulting in
a “ragged” looking barchart, is a typical problem of displays of variables
with many categories.

It is clear that barcharts like this are of limited use in an analysis —
at least in their default form, if the ‘usability’ of barcharts is based on two
properties:

•
•

the ability to get an overview of the marginal distribution,
the possibility of comparing binsizes, including the possibility of de-
riving a ranking of the categories from the display.

In the example of Figure 5.3, it is not even easy to tell which of the cate-
gories has the third biggest number of cases.

Various methods exist to make barcharts with a large number of cate-
gories more readable. The most natural approach is to virtually increase
the size of the display by using scrolling or the more elaborate zooming
and panning as introduced by Eick and Karr (2002).

Other approaches for making barcharts with large numbers of cate-
gories more readable are based on modiﬁcations of the scale of the vari-

5.3 Displays and Techniques in One Dimension

109

a)

Y
u
k
o
n

T
u
n
i
s
i
a

S
r
i

L
a
n
k
a

R
o
m
a
n
a

i

P
r
i
n
c
e

E
d
w
a
r
d

I
s
l
a
n
d

O
m
a
n

N
i
c
a
r
a
g
u
a

N
e
t
h
e
r
l
a
n
d
s

A
n
t
i
l
l

e
s

N
o
r
t
h
w
e
s
t

T
e
r
r
i
t
o
r
i
e
s

b)

N
a
m
b
a

i

i

C
z
e
c
h

B
u
r
u
n
d

i

A
r
m
e
n
a

i

l

A
g
e
r
i
a

A
f
g
h
a
n
i
s
t
a
n

V
e
n
e
z
u
e
a

l

P
u
e
r
t
o

R
i
c
o

P
a
n
a
m
a

J
a
m
a
i
c
a

C
r
o
a
t
i
a

C
o
s
t
a

R
i
c
a

K
u
w
a
i
t

K
e
n
y
a

M
o
r
o
c
c
o

E
g
y
p
t

E
c
u
a
d
o
r

I
n
d
o
n
e
s
i
a

i

D
o
m
n
i
c
a
n

R
e
p
u
b

l
i
c

B
h
u
t
a
n

l

C
o
o
m
b
a

i

T
h
a

i
l

a
n
d

l

P
o
a
n
d

l

M
a
a
y
s
i
s

H
u
n
g
a
r
y

i

S
n
g
a
p
o
r
e

C
h
n
a

i

G
r
e
e
c
e

R
u
s
s
i
a

S
o
u
t
h

K
o
r
e
a

N
e
w
f
o
u
n
d
a
n
d

l

C
h

i
l

e

T
u
r
k
e
y

i

T
a
w
a
n

l

I
c
e
a
n
d

A
r
g
e
n
t
i
n
a

B
r
a
z
i
l

P
o
r
t
u
g
a

l

H
o
n
g

K
o
n
g

P
h

i
l
i

i

p
p
n
e
s

N
o
v
a

S
c
o
t
i
a

S
a
s
k
a
t
c
h
e
w
a
n

N
o
r
t
h
D
a
k
o
t
a

N
e
w
B
r
u
n
s
w
i
c
k

I
n
d
a

i

l

I
r
e
a
n
d

A
u
s
t
r
i
a

M
a
n
i
t
o
b
a

W
y
o
m
n
g

i

M
o
n
t
a
n
a

J
a
p
a
n

S
p
a
n

i

F
r
a
n
c
e

l

D
e
a
w
a
r
e

S
o
u
t
h
D
a
k
o
t
a

l

B
e
g
u
m

i

I
t
a
y

l

i

l

F
n
a
n
d

I
s
r
a
e

l

D
e
n
m
a
r
k

S
o
u
t
h

A
f
r
i
c
a

O
t
h
e
r

N
o
r
w
a
y

V
e
r
m
o
n
t

N
e
b
r
a
s
k
a

S
w

i
t
z
e
r
l
a
n
d

W
e
s
t

V
i
r
g
n
a

i

i

S
w
e
d
e
n

H
a
w
a

i
i

Q
u
e
b
e
c

I
d
a
h
o

l

A
a
s
k
a

M
i
s
s
i
s
s
i
p
p

i

R
h
o
d
e

I
s
l
a
n
d

M
a
n
e

i

N
e
w
Z
e
a
a
n
d

l

N
e
w
M
e
x
i
c
o

N
e
w
H
a
m
p
s
h
i
r
e

l

A
b
e
r
t
a

N
e
v
a
d
a

K
a
n
s
a
s

U
t
a
h

I
o
w
a

A
r
k
a
n
s
a
s

G
e
r
m
a
n
y

N
e
t
h
e
r
l
a
n
d
s

L
o
u
i
s
i
a
n
a

l

O
k
a
h
o
m
a

i

W
a
s
h
n
g
t
o
n
D
.
C
.

B
r
i
t
i
s
h

S
o
u
t
h

C
a
r
o

l
i

n
a

l

C
o
u
m
b
a

i

K
e
n
t
u
c
k
y

l

A
a
b
a
m
a

C
o
n
n
e
c
t
i
c
u
t

A
r
i
z
o
n
a

l

C
o
o
r
a
d
o

i

M
n
n
e
s
o
t
a

T
e
n
n
e
s
s
e
e

O
r
e
g
o
n

M
i
s
s
o
u
r
i

M
a
r
y
a
n
d

l

W
i
s
c
o
n
s
i
n

i

I
n
d
a
n
a

O
n
t
a
r
i
o

A
u
s
t
r
a

l
i

a

N
e
w
J
e
r
s
e
y

N
o
r
t
h

C
a
r
o

l
i

n
a

U
n
i
t
e
d

i

K
n
g
d
o
m

V
i
r
g
n
a

i

i

O
h
o

i

I
l
l
i

n
o
i
s

M
i
c
h
g
a
n

i

i

W
a
s
h
n
g
t
o
n

M
a
s
s
a
c
h
u
s
e
t
t
s

P
e
n
n
s
y
v
a
n
a

i

l

T
h
a

i
l

a
n
d

Y
u
k
o
n

W
y
o
m
n
g

i

T
u
r
k
e
y

W
e
s
t

U
t
a
h

V
i
r
g
n
a

i

i

S
r
i

L
a
n
k
a

S
o
u
t
h

K
o
r
e
a

S
o
u
t
h

A
f
r
i
c
a

R
o
m
a
n
a

i

i

S
n
g
a
p
o
r
e

P
u
e
r
t
o

R
i
c
o

P
r
i
n
c
e

E
d
w
a
r
d

I
s
l
a
n
d

O
m
a
n

l

P
o
a
n
d

P
a
n
a
m
a

N
o
v
a

S
c
o
t
i
a

N
o
r
t
h
w
e
s
t

T
e
r
r
i
t
o
r
i
e
s

N
i
c
a
r
a
g
u
a

N
e
t
h
e
r
l
a
n
d
s

A
n
t
i
l
l

e
s

N
a
m
b
a

i

i

M
o
r
o
c
c
o

M
a
n
i
t
o
b
a

M
i
s
s
i
s
s
i
p
p

i

K
e
n
y
a

I
s
r
a
e

l

I
o
w
a

l

I
c
e
a
n
d

H
u
n
g
a
r
y

I
n
d
o
n
e
s
i
a

G
r
e
e
c
e

F
r
a
n
c
e

E
g
y
p
t

E
c
u
a
d
o
r

C
z
e
c
h

C
r
o
a
t
i
a

D
e
n
m
a
r
k

C
o
s
t
a

R
i
c
a

i

D
o
m
n
i
c
a
n

R
e
p
u
b

l
i
c

B
h
u
t
a
n

l

C
o
o
m
b
a

i

l

B
e
g
u
m

i

T
u
n
i
s
i
a

i

T
a
w
a
n

S
w
e
d
e
n

l

A
g
e
r
i
a

A
r
m
e
n
a

i

A
f
g
h
a
n
i
s
t
a
n

S
o
u
t
h
D
a
k
o
t
a

S
a
s
k
a
t
c
h
e
w
a
n

R
u
s
s
i
a

P
o
r
t
u
g
a

l

P
h

i
l
i

i

p
p
n
e
s

O
t
h
e
r

l

O
k
a
h
o
m
a

N
o
r
t
h
D
a
k
o
t
a

N
e
w
f
o
u
n
d
a
n
d

l

N
e
w
B
r
u
n
s
w
i
c
k

N
e
b
r
a
s
k
a

M
o
n
t
a
n
a

l

M
a
a
y
s
i
s

M
a
n
e

i

K
u
w
a
i
t

J
a
m
a
i
c
a

H
a
w
a

i
i

H
o
n
g

K
o
n
g

i

l

F
n
a
n
d

C
h
n
a

i

C
h

i
l

e

B
u
r
u
n
d

i

A
u
s
t
r
i
a

l

D
e
a
w
a
r
e

S
p
a
n

i

A
r
k
a
n
s
a
s

V
e
n
e
z
u
e
a

l

Q
u
e
b
e
c

N
e
w
M
e
x
i
c
o

R
h
o
d
e

I
s
l
a
n
d

I
t
a
y

l

I
n
d
a

i

I
d
a
h
o

N
e
v
a
d
a

l

A
b
e
r
t
a

l

A
a
s
k
a

V
e
r
m
o
n
t

A
r
g
e
n
t
i
n
a

N
o
r
w
a
y

l

I
r
e
a
n
d

B
r
a
z
i
l

O
r
e
g
o
n

L
o
u
i
s
i
a
n
a

K
a
n
s
a
s

G
e
r
m
a
n
y

M
i
s
s
o
u
r
i

i

M
n
n
e
s
o
t
a

S
w

i
t
z
e
r
l
a
n
d

N
e
t
h
e
r
l
a
n
d
s

N
e
w
Z
e
a
a
n
d

l

N
e
w
H
a
m
p
s
h
i
r
e

J
a
p
a
n

S
o
u
t
h

B
r
i
t
i
s
h

C
a
r
o

l
i

n
a

l

C
o
u
m
b
a

i

K
e
n
t
u
c
k
y

T
e
n
n
e
s
s
e
e

A
u
s
t
r
a

l
i

a

l

A
a
b
a
m
a

i

I
n
d
a
n
a

W
i
s
c
o
n
s
i
n

O
h
o

i

A
r
i
z
o
n
a

l

C
o
o
r
a
d
o

O
n
t
a
r
i
o

l

F
o
r
i
d
a

C
o
n
n
e
c
t
i
c
u
t

M
a
r
y
a
n
d

l

i

W
a
s
h
n
g
t
o
n

N
o
r
t
h

C
a
r
o

l
i

n
a

i

W
a
s
h
n
g
t
o
n
D
.
C
.

P
e
n
n
s
y
v
a
n
a

l

i

V
i
r
g
n
a

i

i

M
i
c
h
g
a
n

i

N
e
w
J
e
r
s
e
y

I
l
l
i

n
o
i
s

U
n
i
t
e
d

i

K
n
g
d
o
m

T
e
x
a
s

l

F
o
r
i
d
a

G
e
o
r
g
a

i

N
e
w
Y
o
r
k

C
a

l
i
f
o
r
n
a

i

T
e
x
a
s

G
e
o
r
g
a

i

N
e
w
Y
o
r
k

C
a

l
i
f
o
r
n
a

i

M
a
s
s
a
c
h
u
s
e
t
t
s

c)

Y
u
k
o
n

S
r
i

L
a
n
k
a

R
o
m
a
n
a

i

P
r
i
n
c
e

E
d
w
a
r
d

I
s
l
a
n
d

O
m
a
n

N
i
c
a
r
a
g
u
a

N
e
t
h
e
r
l
a
n
d
s

A
n
t
i
l
l

e
s

N
o
r
t
h
w
e
s
t

T
e
r
r
i
t
o
r
i
e
s

d)

N
a
m
b
a

i

i

C
z
e
c
h

l

A
g
e
r
i
a

A
r
m
e
n
a

i

A
f
g
h
a
n
i
s
t
a
n

P
u
e
r
t
o

R
i
c
o

P
a
n
a
m
a

C
r
o
a
t
i
a

C
o
s
t
a

R
i
c
a

K
e
n
y
a

M
o
r
o
c
c
o

I
n
d
o
n
e
s
i
a

E
g
y
p
t

E
c
u
a
d
o
r

i

D
o
m
n
i
c
a
n

R
e
p
u
b

l
i
c

l

C
o
o
m
b
a

i

l

P
o
a
n
d

B
h
u
t
a
n

T
h
a

i
l

a
n
d

H
u
n
g
a
r
y

G
r
e
e
c
e

i

S
n
g
a
p
o
r
e

S
o
u
t
h

K
o
r
e
a

l

I
c
e
a
n
d

T
u
r
k
e
y

F
r
a
n
c
e

M
a
n
i
t
o
b
a

W
y
o
m
n
g

i

N
o
v
a

S
c
o
t
i
a

l

B
e
g
u
m

i

I
s
r
a
e

l

D
e
n
m
a
r
k

S
o
u
t
h

A
f
r
i
c
a

W
e
s
t

V
i
r
g
n
a

i

i

M
i
s
s
i
s
s
i
p
p

i

I
o
w
a

U
t
a
h

A
r
k
a
n
s
a
s

l

O
k
a
h
o
m
a

M
a
n
e

i

H
a
w
a

i
i

S
w
e
d
e
n

O
r
e
g
o
n

N
e
v
a
d
a

l

A
b
e
r
t
a

O
t
h
e
r

M
i
s
s
o
u
r
i

N
e
b
r
a
s
k
a

i

M
n
n
e
s
o
t
a

N
e
w
M
e
x
i
c
o

A
u
s
t
r
a

l
i

a

O
h
o

i

Q
u
e
b
e
c

L
o
u
i
s
i
a
n
a

l

i

F
n
a
n
d

I
d
a
h
o

l

F
o
r
i
d
a

l

A
a
s
k
a

K
a
n
s
a
s

i

I
n
d
a
n
a

l

D
e
a
w
a
r
e

R
h
o
d
e

I
s
l
a
n
d

G
e
r
m
a
n
y

T
e
n
n
e
s
s
e
e

N
e
t
h
e
r
l
a
n
d
s

S
o
u
t
h
D
a
k
o
t
a

P
e
n
n
s
y
v
a
n
a

l

i

M
o
n
t
a
n
a

W
i
s
c
o
n
s
i
n

i

W
a
s
h
n
g
t
o
n

N
o
r
t
h

C
a
r
o

l
i

n
a

S
o
u
t
h

C
a
r
o

l
i

n
a

N
e
w
H
a
m
p
s
h
i
r
e

B
r
i
t
i
s
h

I
l
l
i

n
o
i
s

l

C
o
u
m
b
a

i

T
e
x
a
s

A
u
s
t
r
i
a

A
r
i
z
o
n
a

I
t
a
y

l

O
n
t
a
r
i
o

M
i
c
h
g
a
n

i

K
e
n
t
u
c
k
y

l

A
a
b
a
m
a

P
h

i
l
i

i

p
p
n
e
s

N
e
w
Z
e
a
a
n
d

l

N
o
r
t
h
D
a
k
o
t
a

N
e
w
B
r
u
n
s
w
i
c
k

l

C
o
o
r
a
d
o

G
e
o
r
g
a

i

V
e
r
m
o
n
t

N
e
w
Y
o
r
k

S
a
s
k
a
t
c
h
e
w
a
n

U
n
i
t
e
d

i

K
n
g
d
o
m

N
o
r
w
a
y

P
o
r
t
u
g
a

l

M
a
r
y
a
n
d

l

C
a

l
i
f
o
r
n
a

i

S
p
a
n

i

i

T
a
w
a
n

H
o
n
g

K
o
n
g

C
o
n
n
e
c
t
i
c
u
t

V
i
r
g
n
a

i

i

C
h
n
a

i

J
a
p
a
n

l

I
r
e
a
n
d

B
r
a
z
i
l

l

M
a
a
y
s
i
s

A
r
g
e
n
t
i
n
a

J
a
m
a
i
c
a

T
u
n
i
s
i
a

K
u
w
a
i
t

B
u
r
u
n
d

i

V
e
n
e
z
u
e
a

l

C
h

i
l

e

I
n
d
a

i

R
u
s
s
i
a

S
w

i
t
z
e
r
l
a
n
d

N
e
w
f
o
u
n
d
a
n
d

l

N
e
w
J
e
r
s
e
y

M
a
s
s
a
c
h
u
s
e
t
t
s

i

W
a
s
h
n
g
t
o
n
D
.
C
.

Fig. 5.4. Four views of the same information: (a) – (c) Barcharts and (d) a spine-
plot of Country with users stating an overall household income of over $100,000
highlighted. The plotting order of the countries is (a) sorted by number of users per
country, (b) sorted by number of users stating an overall household income of over
$100,000, (c) and (d) sorted by the percentage of users stating an overall household
income of over $100,000.

able. Two main approaches can be identiﬁed: the variable’s scale can be
changed without changing the overall number of categories, using a re-
ordering of the categories. This is, of course, only sensible if the variable is

110

5 Multivariate Categorical Data — Mosaic Plots

nominal. A second approach is to impose a hierarchy on the categories of
the variable, thereby reducing the amount of information displayed. Ex-
amples for modiﬁcations of this second type are logical zooming or group-
ing. Changing the scale of an axis makes it possible to include further
information in a display.

5.3.1 Sorting and Reordering

Higher numbers of categories make simple actions, such as a comparison
of bin heights, harder. And this is even more so if the bins in question
are far apart (see, e.g., Cleveland and McGill (1984) for a discussion of
easiness of graphical tasks). With just a few bins, the natural reaction
would be to “grab” one bin and drag it to a position, where it is easier
to make a comparison — i.e., next to the bin it is to be compared with.
Manual reordering gets less and less efﬁcient with increasing numbers
of categories. Dynamic reordering and sorting mechanisms for categories
are called for. Figure 5.4 shows several aspects of the Internet Usage data
after sorting in different ways:
• Sorting by number highlighted

This sorting routine includes as a special case “sorting by case num-
bers for each category”, when all cases are highlighted.
Plot (a) of Figure 5.4 shows the categories in the order of the number
of participating internet users per country. Note that all the US states
(and all of the Canadian territories) are treated as individual coun-
tries — otherwise the US internet users would dominate the overall
picture even more. Most users came from California (1021 users cor-
responding to 10% overall), followed by New York and Texas. The ﬁrst
non-US entry in the list is the United Kingdom.
In plot (b), categories are sorted by the number of internet users stat-
ing that their overall household income was over $100,000 a year.
Places one to three on the list remain unchanged, Georgia and Mas-
sachusetts have moved up to positions four and ﬁve.
Note that the sorting is hierarchical: if two bins have the same num-
ber of selected cases their original order is retained. This causes the
sawtooth pattern in the plot, particularly on the left.

• Sorting by percentage highlighted

In plots (c) and (d) of Figure 5.4, the categories are sorted by the per-
centage of internet users stating their household income to be over
$100,000 a year. On the very right of this ordering are categories with
small case numbers, led by Venezuela, Burundi and Kuwait (with 2,
1, and 1 users, respectively).
Plot (c) shows a barchart reﬂecting the absolute numbers and plot (d)
shows a spineplot (introduced by Hummel (1996), see Theus (2002b)

5.3 Displays and Techniques in One Dimension

111

l

P
o
a
n
d

H
u
n
g
a
r
y

G
r
e
e
c
e

i

S
n
g
a
p
o
r
e

S
o
u
t
h

K
o
r
e
a

l

I
c
e
a
n
d

T
u
r
k
e
y

F
r
a
n
c
e

M
a
n
i
t
o
b
a

W
y
o
m
n
g

i

N
o
v
a

S
c
o
t
i
a

l

B
e
g
u
m

i

I
s
r
a
e

l

D
e
n
m
a
r
k

S
o
u
t
h

A
f
r
i
c
a

W
e
s
t

V
i
r
g
n
a

i

i

M
i
s
s
i
s
s
i
p
p

i

I
o
w
a

U
t
a
h

A
r
k
a
n
s
a
s

l

O
k
a
h
o
m
a

M
a
n
e

i

H
a
w
a

i
i

S
w
e
d
e
n

O
r
e
g
o
n

N
e
v
a
d
a

l

A
b
e
r
t
a

O
t
h
e
r

M
i
s
s
o
u
r
i

N
e
b
r
a
s
k
a

O
h
o

i

Q
u
e
b
e
c

L
o
u
i
s
i
a
n
a

A
u
s
t
r
a

l
i

a

i

M
n
n
e
s
o
t
a

N
e
w
M
e
x
i
c
o

i

l

F
n
a
n
d

I
d
a
h
o

l

F
o
r
i
d
a

l

A
a
s
k
a

K
a
n
s
a
s

i

I
n
d
a
n
a

l

D
e
a
w
a
r
e

R
h
o
d
e

I
s
l
a
n
d

G
e
r
m
a
n
y

T
e
n
n
e
s
s
e
e

N
e
t
h
e
r
l
a
n
d
s

S
o
u
t
h
D
a
k
o
t
a

P
e
n
n
s
y
v
a
n
a

l

i

M
o
n
t
a
n
a

W
i
s
c
o
n
s
i
n

i

W
a
s
h
n
g
t
o
n

N
o
r
t
h

C
a
r
o

l
i

n
a

S
o
u
t
h

C
a
r
o

l
i

n
a

N
e
w
H
a
m
p
s
h
i
r
e

B
r
i
t
i
s
h

I
l
l
i

n
o
i
s

l

C
o
u
m
b
a

i

T
e
x
a
s

A
u
s
t
r
i
a

A
r
i
z
o
n
a

I
t
a
y

l

O
n
t
a
r
i
o

M
i
c
h
g
a
n

i

K
e
n
t
u
c
k
y

l

A
a
b
a
m
a

P
h

i
l
i

i

p
p
n
e
s

N
e
w
Z
e
a
a
n
d

l

N
o
r
t
h
D
a
k
o
t
a

N
e
w
B
r
u
n
s
w
i
c
k

l

C
o
o
r
a
d
o

G
e
o
r
g
a

i

V
e
r
m
o
n
t

N
e
w
Y
o
r
k

S
a
s
k
a
t
c
h
e
w
a
n

U
n
i
t
e
d

i

K
n
g
d
o
m

N
o
r
w
a
y

P
o
r
t
u
g
a

l

M
a
r
y
a
n
d

l

C
a

l
i
f
o
r
n
a

i

S
p
a
n

i

i

T
a
w
a
n

H
o
n
g

K
o
n
g

C
o
n
n
e
c
t
i
c
u
t

V
i
r
g
n
a

i

i

C
h
n
a

i

J
a
p
a
n

l

I
r
e
a
n
d

B
r
a
z
i
l

l

M
a
a
y
s
i
s

A
r
g
e
n
t
i
n
a

J
a
m
a
i
c
a

T
u
n
i
s
i
a

K
u
w
a
i
t

B
u
r
u
n
d

i

V
e
n
e
z
u
e
a

l

C
h

i
l

e

I
n
d
a

i

R
u
s
s
i
a

S
w

i
t
z
e
r
l
a
n
d

N
e
w
f
o
u
n
d
a
n
d

l

N
e
w
J
e
r
s
e
y

M
a
s
s
a
c
h
u
s
e
t
t
s

i

W
a
s
h
n
g
t
o
n
D
.
C
.

Y
u
k
o
n

S
r
i

L
a
n
k
a

R
o
m
a
n
a

i

P
r
i
n
c
e

E
d
w
a
r
d

I
s
l
a
n
d

O
m
a
n

N
i
c
a
r
a
g
u
a

N
e
t
h
e
r
l
a
n
d
s

A
n
t
i
l
l

e
s

N
o
r
t
h
w
e
s
t

T
e
r
r
i
t
o
r
i
e
s

N
a
m
b
a

i

i

C
z
e
c
h

l

A
g
e
r
i
a

A
r
m
e
n
a

i

A
f
g
h
a
n
i
s
t
a
n

P
u
e
r
t
o

R
i
c
o

P
a
n
a
m
a

C
r
o
a
t
i
a

C
o
s
t
a

R
i
c
a

K
e
n
y
a

M
o
r
o
c
c
o

I
n
d
o
n
e
s
i
a

E
g
y
p
t

E
c
u
a
d
o
r

i

D
o
m
n
i
c
a
n

R
e
p
u
b

l
i
c

B
h
u
t
a
n

l

C
o
o
m
b
a

i

T
h
a

i
l

a
n
d

Fig. 5.5. Spineplot of Country; highlighted area shows users stating an overall
household income of less than $10.000.

for details) of the same data. The spineplot reﬂects this ordering of the
bins.

Figure 5.5 shows a spineplot of Country. The categories are ordered
in the same way as part (c) and (d) of Figure 5.4, that is by the percent-
age of internet users stating a household income of over $100,000. High-
lighted are internet users stating an overall household income of less than
$10,000. Among countries on the very right of the barchart — which have
a high percentage of users with household incomes of over $100,000 —
there are some with high percentages of users stating household incomes
of less than $10,000. In this way, a one-dimensional plot visualizes infor-
mation on more than one dimension. A more general discussion on sorting
and orderings can be found in Section 4.3.4.

5.3.2 Grouping, Averaging, and Zooming

Another way of working on the scale of a categorical axis is grouping.
Unlike sorting, this method is not limited to nominal variables but works
for all categorical — and even real-valued continuous — variables.

Figure 5.6 shows an example of grouping categories in the internet
users data. Countries with few users have been combined together into
two larger groups, so that the number of categories is reduced and more
space is available for individual bins. Grouping can also be used to intro-
duce a hierarchical structure to a nominal variable, such as continents for
the Country variable. Hierarchies can either be given naturally as shown
in Figure 5.7, or be imposed by other properties, such as location or size
of categories. The multiresolution metaphor (Eick and Karr; 2002) is, for
example, based on a hierarchy laid down by the location of cases in the
display.

Grouping reduces the number of bins displayed, mostly by reducing
the number of smaller categories. When the emphasis is on exploring re-
lationships between categories with small numbers of cases, the strategy
has to be modiﬁed.

112

5 Multivariate Categorical Data — Mosaic Plots

Y
u
k
o
n

T
u
n
i
s
i
a

S
r
i

L
a
n
k
a

R
o
m
a
n
a

i

P
r
i
n
c
e

E
d
w
a
r
d

I
s
l
a
n
d

O
m
a
n

N
i
c
a
r
a
g
u
a

N
e
t
h
e
r
l
a
n
d
s

A
n
t
i
l
l

e
s

N
o
r
t
h
w
e
s
t

T
e
r
r
i
t
o
r
i
e
s

N
a
m
b
a

i

i

C
z
e
c
h

B
u
r
u
n
d

i

A
r
m
e
n
a

i

l

A
g
e
r
i
a

A
f
g
h
a
n
i
s
t
a
n

V
e
n
e
z
u
e
a

l

P
u
e
r
t
o

R
i
c
o

P
a
n
a
m
a

J
a
m
a
i
c
a

C
r
o
a
t
i
a

C
o
s
t
a

R
i
c
a

K
u
w
a
i
t

K
e
n
y
a

M
o
r
o
c
c
o

E
g
y
p
t

E
c
u
a
d
o
r

I
n
d
o
n
e
s
i
a

i

D
o
m
n
i
c
a
n

R
e
p
u
b

l
i
c

B
h
u
t
a
n

l

C
o
o
m
b
a

i

T
h
a

i
l

a
n
d

l

P
o
a
n
d

l

M
a
a
y
s
i
s

H
u
n
g
a
r
y

i

S
n
g
a
p
o
r
e

C
h
n
a

i

G
r
e
e
c
e

R
u
s
s
i
a

S
o
u
t
h

K
o
r
e
a

N
e
w
f
o
u
n
d
a
n
d

l

C
h

i
l

e

T
u
r
k
e
y

i

T
a
w
a
n

l

I
c
e
a
n
d

A
r
g
e
n
t
i
n
a

B
r
a
z
i
l

P
o
r
t
u
g
a

l

H
o
n
g

K
o
n
g

P
h

i
l
i

i

p
p
n
e
s

N
o
v
a

S
c
o
t
i
a

S
a
s
k
a
t
c
h
e
w
a
n

N
o
r
t
h
D
a
k
o
t
a

N
e
w
B
r
u
n
s
w
i
c
k

I
n
d
a

i

l

I
r
e
a
n
d

A
u
s
t
r
i
a

M
a
n
i
t
o
b
a

W
y
o
m
n
g

i

M
o
n
t
a
n
a

J
a
p
a
n

S
p
a
n

i

F
r
a
n
c
e

l

D
e
a
w
a
r
e

S
o
u
t
h
D
a
k
o
t
a

I
t
a
y

l

l

B
e
g
u
m

i

l

i

F
n
a
n
d

I
s
r
a
e

l

D
e
n
m
a
r
k

S
o
u
t
h

A
f
r
i
c
a

O
t
h
e
r

N
o
r
w
a
y

V
e
r
m
o
n
t

N
e
b
r
a
s
k
a

S
w

i
t
z
e
r
l
a
n
d

W
e
s
t

V
i
r
g
n
a

i

i

S
w
e
d
e
n

H
a
w
a

i
i

Q
u
e
b
e
c

I
d
a
h
o

l

A
a
s
k
a

M
i
s
s
i
s
s
i
p
p

i

R
h
o
d
e

I
s
l
a
n
d

M
a
n
e

i

N
e
w
Z
e
a
a
n
d

l

N
e
w
M
e
x
i
c
o

N
e
w
H
a
m
p
s
h
i
r
e

l

A
b
e
r
t
a

N
e
v
a
d
a

K
a
n
s
a
s

U
t
a
h

I
o
w
a

A
r
k
a
n
s
a
s

G
e
r
m
a
n
y

N
e
t
h
e
r
l
a
n
d
s

L
o
u
i
s
i
a
n
a

l

O
k
a
h
o
m
a

i

W
a
s
h
n
g
t
o
n
D
.
C
.

K
e
n
t
u
c
k
y

l

A
a
b
a
m
a

C
o
n
n
e
c
t
i
c
u
t

A
r
i
z
o
n
a

l

C
o
o
r
a
d
o

i

M
n
n
e
s
o
t
a

T
e
n
n
e
s
s
e
e

O
r
e
g
o
n

M
i
s
s
o
u
r
i

M
a
r
y
a
n
d

l

W
i
s
c
o
n
s
i
n

i

I
n
d
a
n
a

O
n
t
a
r
i
o

B
r
i
t
i
s
h

S
o
u
t
h

C
a
r
o

l
i

n
a

l

C
o
u
m
b
a

i

N
o
r
t
h

C
a
r
o

l
i

n
a

A
u
s
t
r
a

l
i

a

N
e
w
J
e
r
s
e
y

U
n
i
t
e
d

i

K
n
g
d
o
m

V
i
r
g
n
a

i

i

O
h
o

i

I
l
l
i

n
o
i
s

M
i
c
h
g
a
n

i

i

W
a
s
h
n
g
t
o
n

M
a
s
s
a
c
h
u
s
e
t
t
s

P
e
n
n
s
y
v
a
n
a

i

l

T
e
x
a
s

l

F
o
r
i
d
a

G
e
o
r
g
a

i

N
e
w
Y
o
r
k

C
a

l
i
f
o
r
n
a

i

countries with <11 participants

countries with <31 participants

W
e
s
t

V
i
r
g
n
a

i

i

S
w
e
d
e
n

H
a
w
a

i
i

Q
u
e
b
e
c

I
d
a
h
o

l

A
a
s
k
a

M
i
s
s
i
s
s
i
p
p

i

R
h
o
d
e

I
s
l
a
n
d

M
a
n
e

i

N
e
w
Z
e
a
a
n
d

l

N
e
w
M
e
x
i
c
o

N
e
w
H
a
m
p
s
h
i
r
e

l

A
b
e
r
t
a

N
e
v
a
d
a

K
a
n
s
a
s

U
t
a
h

I
o
w
a

A
r
k
a
n
s
a
s

G
e
r
m
a
n
y

N
e
t
h
e
r
l
a
n
d
s

L
o
u
i
s
i
a
n
a

l

O
k
a
h
o
m
a

i

W
a
s
h
n
g
t
o
n
D
.
C
.

N
e
b
r
a
s
k
a

S
a
s
k
a
t
c
h
e
w
a
n

t
o

Y
u
k
o
n

S
w

i
t
z
e
r
l
a
n
d

t
o

P
h

i
l
i

i

p
p
n
e
s

B
r
i
t
i
s
h

S
o
u
t
h

C
a
r
o

l
i

n
a

l

C
o
u
m
b
a

i

K
e
n
t
u
c
k
y

l

A
a
b
a
m
a

C
o
n
n
e
c
t
i
c
u
t

A
r
i
z
o
n
a

l

C
o
o
r
a
d
o

i

M
n
n
e
s
o
t
a

T
e
n
n
e
s
s
e
e

O
r
e
g
o
n

M
i
s
s
o
u
r
i

M
a
r
y
a
n
d

l

W
i
s
c
o
n
s
i
n

i

I
n
d
a
n
a

O
n
t
a
r
i
o

A
u
s
t
r
a

l
i

a

N
e
w
J
e
r
s
e
y

N
o
r
t
h

C
a
r
o

l
i

n
a

U
n
i
t
e
d

i

K
n
g
d
o
m

V
i
r
g
n
a

i

i

T
e
x
a
s

l

F
o
r
i
d
a

G
e
o
r
g
a

i

N
e
w
Y
o
r
k

C
a

l
i
f
o
r
n
a

i

O
h
o

i

I
l
l
i

n
o
i
s

M
i
c
h
g
a
n

i

i

W
a
s
h
n
g
t
o
n

M
a
s
s
a
c
h
u
s
e
t
t
s

P
e
n
n
s
y
v
a
n
a

i

l

Fig. 5.6. Barcharts of Country, countries with less than 11 participating internet-
users are grouped together, the other newly deﬁned group contains all countries
with 11–30 participating users.

Different options exist for focusing on small bins. Averaging bins is a
variant of grouping bins: when grouping several bins, one new category is
produced as a result, combining all the appropriate cases. When averag-
ing several bins, one new category is again produced to replace these bins,
but instead of all cases only the average number of cases is represented.
The graphical dominance of large bins is reduced by averaging, so that
smaller bins are emphasized. Technically, this is done by introducing a
weighting variable. Averaging is a slightly risky approach since it is non-
commutative and non-associative, so that the order in which averaging
actions are carried out affects the result. As long as interest is directed
only at the non-averaged bins, this is not a problem. Figure 5.8 shows an
example from the Internet Usage dataset.

Another option for concentrating on small categories is zooming or log-
ical zooming. Whereas standard zooming enlarges the displayed graphi-
cal elements, logical zooming works on the underlying model and changes
it to display more details.

5.4 Mosaic Plots

113

Continents

A
r
c
t
i
c

A
f
r
i
c
a

C
a
r
i
b
b
e
a
n

O
c
e
a
n
a

i

E
u
r
o
p
e

N
o
r
t
h

A
m
e
r
i
c
a

C
e
n
t
r
a

l

A
m
e
r
i
c
a

A
s
i
a

S
o
u
t
h

A
m
e
r
i
c
a

S
o
u
t
h
e
a
s
t

A
s
i
a

i

M
d
d
e

l

E
a
s
t

O
t
h
e
r

E
g
y
p
t

D

j
i
b
o
u
t
i

B
a
h
a
m
a
s

M
a
d
a
g
a
s
c
a
r

S
o
u
t
h

A
f
r
i
c
a

V
i
r
g
n

i

I
s
l
a
n
d
s

N
e
w
Z
e
a
a
n
d

l

V
a
n
u
a
t
u

T
r
i
n
i
d
a
d
a
n
d
T
o
b
a
g
o

A
u
s
t
r
a

l
i

a

R
o
m
a
n
a

i

l

S
o
v
a
k
a

i

E
s
t
o
n
a

i

H
u
n
g
a
r
y

C
z
e
c
h

C
r
o
a
t
i
a

P
o
r
t
u
g
a

l

S
p
a
n

i

l

P
o
a
n
d

G
r
e
e
c
e

l

B
e
g
u
m

i

l

i

F
n
a
n
d

I
t
a
y

l

A
u
s
t
r
i
a

l

I
r
e
a
n
d

S
w

i
t
z
e
r
l
a
n
d

F
r
a
n
c
e

S
w
e
d
e
n

G
e
r
m
a
n
y

N
o
r
w
a
y

D
e
n
m
a
r
k

N
e
t
h
e
r
l
a
n
d
s

U
n
i
t
e
d

i

K
n
g
d
o
m

C
a
n
a
d
a

U
S
A

C
o
s
t
a

R
i
c
a

P
a
n
a
m
a

G
u
a
t
e
m
a
a

l

P
u
e
r
t
o

B
o

l
i

i

v
a

R
i
c
o

P
e
r
u

U
r
u
g
u
a
y

S
u
r
i
n
a
m
e

V
e
n
e
z
u
e
a

l

C
h

i
l

e

A
r
g
e
n
t
i
n
a

l

C
o
o
m
b
a

i

B
r
a
z
i
l

I
n
d
o
n
e
s
i
a

H
o
n
g

K
o
n
g

P
h

i
l
i

i

p
p
n
e
s

l

M
a
a
y
s
i
s

S
r
i

L
a
n
k
a

U
z
b
e
k
i
s
t
a
n

C
h
n
a

i

i

T
a
w
a
n

P
a
k
i
s
t
a
n

i

S
n
g
a
p
o
r
e

O
m
a
n

J
o
r
d
a
n

R
u
s
s
i
a

S
o
u
t
h

I
n
d
a

i

J
a
p
a
n

K
o
r
e
a

T
u
r
k
e
y

U
n
i
t
e
d
A
r
a
b
E
m

i
r
a
t
e
s

I
s
r
a
e

l

l

I
c
e
a
n
d

Countries

States

O
t
h
e
r

E
g
y
p
t

D

j
i
b
o
u
t
i

M
a
d
a
g
a
s
c
a
r

S
o
u
t
h

A
f
r
i
c
a

B
a
h
a
m
a
s

V
i
r
g
n

i

I
s
l
a
n
d
s

V
a
n
u
a
t
u

T
r
i
n
i
d
a
d

a
n
d
T
o
b
a
g
o

N
e
w
Z
e
a
a
n
d

l

A
u
s
t
r
a

l
i

a

R
o
m
a
n
a

i

E
s
t
o
n
a

i

l

S
o
v
a
k
a

i

C
z
e
c
h

H
u
n
g
a
r
y

C
r
o
a
t
i
a

P
o
r
t
u
g
a

l

I
t
a
y

l

l

I
r
e
a
n
d

l

P
o
a
n
d

G
r
e
e
c
e

S
p
a
n

i

l

B
e
g
u
m

i

A
u
s
t
r
i
a

S
w

i
t
z
e
r
l
a
n
d

i

l

F
n
a
n
d

F
r
a
n
c
e

S
w
e
d
e
n

G
e
r
m
a
n
y

N
o
r
w
a
y

D
e
n
m
a
r
k

N
e
t
h
e
r
l
a
n
d
s

U
n
i
t
e
d

i

K
n
g
d
o
m

Y
u
k
o
n

N
o
r
t
h
w
e
s
t

T
e
r
r
i
t
o
r
i
e
s

N
e
w
f
o
u
n
d
a
n
d

l

P
r
i
n
c
e
E
d
w
a
r
d

I
s
l
a
n
d

N
o
r
t
h
D
a
k
o
t
a

S
o
u
t
h
D
a
k
o
t
a

N
e
w
B
r
u
n
s
w
i
c
k

M
a
n
i
t
o
b
a

N
o
v
a

S
c
o
t
i
a

H
a
w
a

i
i

l

D
e
a
w
a
r
e

I
d
a
h
o

M
o
n
t
a
n
a

W
y
o
m
n
g

i

R
h
o
d
e

I
s
l
a
n
d

V
e
r
m
o
n
t

S
a
s
k
a
t
c
h
e
w
a
n

W
e
s
t

V
i
r
g
n
a

i

i

M
a
n
e

i

l

A
b
e
r
t
a

A
r
k
a
n
s
a
s

U
t
a
h

L
o
u
i
s
i
a
n
a

K
a
n
s
a
s

l

O
k
a
h
o
m
a

l

A
a
s
k
a

N
e
v
a
d
a

M
i
s
s
i
s
s
i
p
p

i

N
e
b
r
a
s
k
a

N
e
w
M
e
x
i
c
o

Q
u
e
b
e
c

N
e
w
H
a
m
p
s
h
i
r
e

I
o
w
a

B
r
i
t
i
s
h

l

C
o
u
m
b
a

i

K
e
n
t
u
c
k
y

i

W
a
s
h
n
g
t
o
n
D
.
C
.

C
o
n
n
e
c
t
i
c
u
t

S
o
u
t
h

C
a
r
o

l
i

n
a

O
r
e
g
o
n

l

A
a
b
a
m
a

l

C
o
o
r
a
d
o

i

M
n
n
e
s
o
t
a

A
r
i
z
o
n
a

M
i
s
s
o
u
r
i

W
i
s
c
o
n
s
i
n

i

I
n
d
a
n
a

T
e
n
n
e
s
s
e
e

M
a
r
y
a
n
d

l

M
i
c
h
g
a
n

i

N
e
w
J
e
r
s
e
y

O
n
t
a
r
i
o

M
a
s
s
a
c
h
u
s
e
t
t
s

N
o
r
t
h

C
a
r
o

l
i

n
a

O
h
o

i

i

W
a
s
h
n
g
t
o
n

I
l
l
i

n
o
i
s

V
i
r
g
n
a

i

i

l

F
o
r
i
d
a

P
e
n
n
s
y
v
a
n
a

i

l

G
e
o
r
g
a

i

N
e
w
Y
o
r
k

T
e
x
a
s

C
a

l
i
f
o
r
n
a

i

C
o
s
t
a

R
i
c
a

G
u
a
t
e
m
a
a

l

P
a
n
a
m
a

P
u
e
r
t
o

R
i
c
o

B
o

l
i

i

v
a

U
r
u
g
u
a
y

S
u
r
i
n
a
m
e

P
e
r
u

V
e
n
e
z
u
e
a

l

C
h

i
l

e

A
r
g
e
n
t
i
n
a

B
r
a
z
i
l

l

C
o
o
m
b
a

i

I
n
d
o
n
e
s
i
a

H
o
n
g

K
o
n
g

l

M
a
a
y
s
i
s

P
h

i
l
i

i

p
p
n
e
s

i

T
a
w
a
n

P
a
k
i
s
t
a
n

S
r
i

L
a
n
k
a

U
z
b
e
k
i
s
t
a
n

O
m
a
n

J
o
r
d
a
n

C
h
n
a

i

i

S
n
g
a
p
o
r
e

R
u
s
s
i
a

S
o
u
t
h

I
n
d
a

i

J
a
p
a
n

K
o
r
e
a

I
s
r
a
e

l

l

I
c
e
a
n
d

T
u
r
k
e
y

U
n
i
t
e
d
A
r
a
b
E
m

i
r
a
t
e
s

Fig. 5.7. Repeated grouping of categories can be used to implement a natural hi-
erarchical structure in the data. From top to bottom, the hierarchy is given as
Continents – Countries – States.

5.4 Mosaic Plots

For higher-dimensional displays, the organizational techniques intro-
duced so far become even more important.

When using mosaic plots, there are usually two goals — ﬁrst of all,
trying to ﬁnd some overall structure between the variables — secondly,

114

5 Multivariate Categorical Data — Mosaic Plots

Y
u
k
o
n

T
u
n
i
s
i
a

S
r
i

L
a
n
k
a

R
o
m
a
n
a

i

P
r
i
n
c
e

E
d
w
a
r
d

I
s
l
a
n
d

O
m
a
n

N
i
c
a
r
a
g
u
a

N
e
t
h
e
r
l
a
n
d
s

A
n
t
i
l
l

e
s

N
o
r
t
h
w
e
s
t

T
e
r
r
i
t
o
r
i
e
s

N
a
m
b
a

i

i

C
z
e
c
h

B
u
r
u
n
d

i

A
r
m
e
n
a

i

l

A
g
e
r
i
a

A
f
g
h
a
n
i
s
t
a
n

V
e
n
e
z
u
e
a

l

P
u
e
r
t
o

R
i
c
o

P
a
n
a
m
a

J
a
m
a
i
c
a

C
r
o
a
t
i
a

C
o
s
t
a

R
i
c
a

K
u
w
a
i
t

K
e
n
y
a

M
o
r
o
c
c
o

E
g
y
p
t

E
c
u
a
d
o
r

I
n
d
o
n
e
s
i
a

i

D
o
m
n
i
c
a
n

R
e
p
u
b

l
i
c

B
h
u
t
a
n

l

C
o
o
m
b
a

i

T
h
a

i
l

a
n
d

l

P
o
a
n
d

l

M
a
a
y
s
i
s

H
u
n
g
a
r
y

i

S
n
g
a
p
o
r
e

C
h
n
a

i

G
r
e
e
c
e

R
u
s
s
i
a

S
o
u
t
h

K
o
r
e
a

N
e
w
f
o
u
n
d
a
n
d

l

C
h

i
l

e

T
u
r
k
e
y

i

T
a
w
a
n

l

I
c
e
a
n
d

A
r
g
e
n
t
i
n
a

B
r
a
z
i
l

P
o
r
t
u
g
a

l

H
o
n
g

K
o
n
g

P
h

i
l
i

i

p
p
n
e
s

N
o
v
a

S
c
o
t
i
a

S
a
s
k
a
t
c
h
e
w
a
n

N
o
r
t
h
D
a
k
o
t
a

N
e
w
B
r
u
n
s
w
i
c
k

I
n
d
a

i

l

I
r
e
a
n
d

A
u
s
t
r
i
a

M
a
n
i
t
o
b
a

W
y
o
m
n
g

i

M
o
n
t
a
n
a

J
a
p
a
n

S
p
a
n

i

F
r
a
n
c
e

l

D
e
a
w
a
r
e

S
o
u
t
h
D
a
k
o
t
a

I
t
a
y

l

l

B
e
g
u
m

i

i

l

F
n
a
n
d

I
s
r
a
e

l

D
e
n
m
a
r
k

S
o
u
t
h

A
f
r
i
c
a

O
t
h
e
r

N
o
r
w
a
y

V
e
r
m
o
n
t

N
e
b
r
a
s
k
a

S
w

i
t
z
e
r
l
a
n
d

W
e
s
t

V
i
r
g
n
a

i

i

S
w
e
d
e
n

H
a
w
a

i
i

Q
u
e
b
e
c

I
d
a
h
o

l

A
a
s
k
a

M
i
s
s
i
s
s
i
p
p

i

R
h
o
d
e

I
s
l
a
n
d

M
a
n
e

i

N
e
w
Z
e
a
a
n
d

l

N
e
w
M
e
x
i
c
o

N
e
w
H
a
m
p
s
h
i
r
e

l

A
b
e
r
t
a

N
e
v
a
d
a

K
a
n
s
a
s

U
t
a
h

I
o
w
a

A
r
k
a
n
s
a
s

G
e
r
m
a
n
y

N
e
t
h
e
r
l
a
n
d
s

L
o
u
i
s
i
a
n
a

l

O
k
a
h
o
m
a

i

W
a
s
h
n
g
t
o
n
D
.
C
.

B
r
i
t
i
s
h

S
o
u
t
h

C
a
r
o

l
i

n
a

l

C
o
u
m
b
a

i

K
e
n
t
u
c
k
y

l

A
a
b
a
m
a

C
o
n
n
e
c
t
i
c
u
t

A
r
i
z
o
n
a

l

C
o
o
r
a
d
o

i

M
n
n
e
s
o
t
a

T
e
n
n
e
s
s
e
e

O
r
e
g
o
n

M
i
s
s
o
u
r
i

M
a
r
y
a
n
d

l

W
i
s
c
o
n
s
i
n

i

I
n
d
a
n
a

O
n
t
a
r
i
o

A
u
s
t
r
a

l
i

a

N
e
w
J
e
r
s
e
y

N
o
r
t
h

C
a
r
o

l
i

n
a

U
n
i
t
e
d

i

K
n
g
d
o
m

V
i
r
g
n
a

i

i

T
e
x
a
s

l

F
o
r
i
d
a

G
e
o
r
g
a

i

N
e
w
Y
o
r
k

C
a

l
i
f
o
r
n
a

i

O
h
o

i

I
l
l
i

n
o
i
s

M
i
c
h
g
a
n

i

i

W
a
s
h
n
g
t
o
n

M
a
s
s
a
c
h
u
s
e
t
t
s

P
e
n
n
s
y
v
a
n
a

l

i

average of top
ten countries

Y
u
k
o
n

T
u
n
i
s
i
a

S
r
i

L
a
n
k
a

R
o
m
a
n
a

i

P
r
i
n
c
e

E
d
w
a
r
d

I
s
l
a
n
d

O
m
a
n

N
i
c
a
r
a
g
u
a

N
e
t
h
e
r
l
a
n
d
s

A
n
t
i
l
l

e
s

N
o
r
t
h
w
e
s
t

T
e
r
r
i
t
o
r
i
e
s

N
a
m
b
a

i

i

C
z
e
c
h

B
u
r
u
n
d

i

A
r
m
e
n
a

i

l

A
g
e
r
i
a

A
f
g
h
a
n
i
s
t
a
n

V
e
n
e
z
u
e
a

l

P
u
e
r
t
o

R
i
c
o

P
a
n
a
m
a

J
a
m
a
i
c
a

C
r
o
a
t
i
a

C
o
s
t
a

R
i
c
a

K
u
w
a
i
t

K
e
n
y
a

M
o
r
o
c
c
o

E
g
y
p
t

E
c
u
a
d
o
r

I
n
d
o
n
e
s
i
a

i

D
o
m
n
i
c
a
n

R
e
p
u
b

l
i
c

B
h
u
t
a
n

l

C
o
o
m
b
a

i

T
h
a

i
l

a
n
d

l

P
o
a
n
d

l

M
a
a
y
s
i
s

H
u
n
g
a
r
y

i

S
n
g
a
p
o
r
e

C
h
n
a

i

G
r
e
e
c
e

R
u
s
s
i
a

S
o
u
t
h

K
o
r
e
a

N
e
w
f
o
u
n
d
a
n
d

l

C
h

i
l

e

T
u
r
k
e
y

i

T
a
w
a
n

l

I
c
e
a
n
d

A
r
g
e
n
t
i
n
a

B
r
a
z
i
l

P
o
r
t
u
g
a

l

H
o
n
g

K
o
n
g

P
h

i
l
i

i

p
p
n
e
s

N
o
v
a

S
c
o
t
i
a

S
a
s
k
a
t
c
h
e
w
a
n

N
o
r
t
h
D
a
k
o
t
a

N
e
w
B
r
u
n
s
w
i
c
k

I
n
d
a

i

l

I
r
e
a
n
d

A
u
s
t
r
i
a

M
a
n
i
t
o
b
a

W
y
o
m
n
g

i

M
o
n
t
a
n
a

J
a
p
a
n

S
p
a
n

i

F
r
a
n
c
e

l

D
e
a
w
a
r
e

S
o
u
t
h
D
a
k
o
t
a

I
t
a
y

l

l

B
e
g
u
m

i

i

l

F
n
a
n
d

I
s
r
a
e

l

D
e
n
m
a
r
k

S
o
u
t
h

A
f
r
i
c
a

O
t
h
e
r

N
o
r
w
a
y

V
e
r
m
o
n
t

N
e
b
r
a
s
k
a

S
w

i
t
z
e
r
l
a
n
d

W
e
s
t

V
i
r
g
n
a

i

i

S
w
e
d
e
n

H
a
w
a

i
i

Q
u
e
b
e
c

I
d
a
h
o

l

A
a
s
k
a

M
i
s
s
i
s
s
i
p
p

i

R
h
o
d
e

I
s
l
a
n
d

M
a
n
e

i

N
e
w
Z
e
a
a
n
d

l

N
e
w
M
e
x
i
c
o

N
e
w
H
a
m
p
s
h
i
r
e

l

A
b
e
r
t
a

N
e
v
a
d
a

K
a
n
s
a
s

U
t
a
h

I
o
w
a

A
r
k
a
n
s
a
s

G
e
r
m
a
n
y

N
e
t
h
e
r
l
a
n
d
s

L
o
u
i
s
i
a
n
a

l

O
k
a
h
o
m
a

i

W
a
s
h
n
g
t
o
n
D
.
C
.

B
r
i
t
i
s
h

S
o
u
t
h

C
a
r
o

l
i

n
a

l

C
o
u
m
b
a

i

K
e
n
t
u
c
k
y

l

A
a
b
a
m
a

C
o
n
n
e
c
t
i
c
u
t

A
r
i
z
o
n
a

l

C
o
o
r
a
d
o

i

M
n
n
e
s
o
t
a

T
e
n
n
e
s
s
e
e

O
r
e
g
o
n

M
i
s
s
o
u
r
i

M
a
r
y
a
n
d

l

W
i
s
c
o
n
s
i
n

i

I
n
d
a
n
a

O
n
t
a
r
i
o

A
u
s
t
r
a

l
i

a

N
e
w
J
e
r
s
e
y

N
o
r
t
h

C
a
r
o

l
i

n
a

U
n
i
t
e
d

i

K
n
g
d
o
m

V
i
r
g
n
a

i

i

M
a
s
s
a
c
h
u
s
e
t
t
s

A
v
e
r
a
g
e

o
f

C
a

l
i
f
o
r
n
a

i

Fig. 5.8. Barcharts of Country; the top ten countries have been summarized in one
bin, which displays their average.

t
o
W
a
s
h
n
g
t
o
n

i

trying to identify combinations of the variables that do not follow the
overall structure.

Different variations of mosaic plots

(Hartigan and Kleiner; 1981;
Friendly; 1994a; Hofmann; 2000) are differently suited for these goals,
depending on the speciﬁc dataset and the problem. Table 5.4 shows an
overview of the most common variations of mosaic diagrams. Typically,
for large numbers of categories, grid-based diagrams are easier to read
than the default diagram. Additional information can be encoded in mo-
saic plots by gray-shading the bins or using rescaling methods.

The problems in mosaic plots of variables with high numbers of cate-

gories are :
• for higher dimensions, the number of combinations that are empty

increases multiplicatively (curse of dimensionality);

• the cell sizes have a skew distribution, making overview diagrams un-

informative (a few bins dominate the diagram).

5.4.1 Combinatorics of Mosaic Plots

Mosaic plots are constructed strictly hierarchically — the order of the
variables in the plot is crucial for interpretation. When variables in a mo-
saic plot are reordered, the plot changes in various ways. Even though

Table 5.2. Overview of the Most Common Variations of Mosaic Plots

5.4 Mosaic Plots

115

Variation

(a) default

(b) same binsize

(c) ﬂuctuation diagram
(d) χ2 diagram

Binsize Grid-based Emphasis on

pij

1
pij
pi. · p.j

no

yes

yes

yes

trends, overall patterns

structure in ‘missingness’

large cell patterns

deviation from independence

the same cells are shown and their sizes are not changed, the cells’ aspect
ratios and locations may be different. This happens in a discontinuous
fashion, that is, neighboring cells in one setting are not necessarily neigh-
bors in another setting. With p variables there are p! different orderings
possible. With 3 variables, this implies a manageable 6 different displays,
but with 5 variables, it starts to get out of hand, as there are 120 differ-
ent mosaic plots possible. For 8 variables, the number is already in the
tens of thousands. Obviously, viewing all those displays is both impossi-
ble and unnecessary. A good starting ordering is needed and then various
additional orderings can be inspected by hand, depending on the dataset.
Figure 5.9 shows an example of how a mosaic plot is affected by re-
ordering its variables. The ﬁgure contains three out of the six possible
orderings; the same cell is highlighted in all three plots. While the ﬁrst
reordering does not affect the cell much — the main change is a rotation
of 90 degrees and a shift to the right, the second reordering also changes
the aspect ratio drastically. Even though the size was not affected by the
change, it is hard to tell visually. Obviously, interactive methods for re-
ordering variables in mosaic plots are necessary for interpretation. Us-
ing highlighting helps to keep track of subgroups of cells during these
changes.

How You Heard about Survey

Banner
Friend
Mailing List

Mailing List
Friend
Banner

Friend
Banner
Mailing List

Fig. 5.9. Reordering variables in a mosaic plot affects aspect ratio and location of
a cell, but not its size.

116

5 Multivariate Categorical Data — Mosaic Plots

5.4.2 Cases per Pixel and Pixels per Case

Large numbers of variables mean large numbers of possible combina-
tions. A square window of height and width 700 pixels has an area of
almost half a million pixels. Drawing a ﬂuctuation diagram with square
cells of side a, including the border, and assuming that each cell has a
further empty border around it of width 1 pixel (so that there are two
pixels between each cell) would allow 490, 000/(a + 1)2 cells. For a = 9 you
can then display all 4048 possible combinations of 12 binary variables,
giving a maximum of 81 pixels for the largest group and allowing the
identiﬁcation of any prominent clusterings in the 12-dimensional space.
As for barcharts and any other area-based diagram, a crucial num-
ber for mosaic plots is the number of pixels corresponding to each ob-
servation. This number has to be constant for all observations — in the
case of a mosaic plot, it is constant for all observations within a bin, but
might change slightly between different bins because of rounding. Obvi-
ously, the number of pixels per observation is indirectly proportional to
the number of total cases displayed. With increasing numbers of cases,
the number of pixels per observation is reduced linearly in a mosaic plot
of ﬁxed size. Once the number of pixels per observation drops below 1, it
is no longer possible to keep track of individual cases. To reduce the risk
of drawing incorrect conclusions, additional visual indicators, such as red
framing of bins, are needed as a warning.

5.4.3 Calibrating the Eye

To spot something “unusual” in mosaic plots, it is important to know what
to expect from each of the variations in a “usual” situation. For a sample
of categorical data, the null assumption is commonly Poisson sampling.
Figure 5.10 shows mosaics of a contingency table of six variables with
three categories each. The cell sizes are realizations of a Poisson distri-
bution with λ = 5000/(36) ≈ 6.86. These mosaics are examples of what to
expect when there is no structure in the data.

Without structure in the data, the default mode shows a strong grid-
like pattern. Nine blocks of cells are visible, each consisting of nine
smaller blocks of nine cells each. Perfect independence between the vari-
ables yields a perfect grid in a default mosaic.

Variation (d) — the χ2-diagram — starts from the assumption of to-
tal independence between the variables. The cells’ areas are proportional
to the product of the marginal distributions. To indicate deviation from
perfect independence, colour is used: cells with positive residuals (more
cases observed than expected) are marked with blue, negative residuals
are drawn with red. The height of the coloured area is proportional to
the size of the cell’s residual. Without any structure in the variables, the
colour is distributed across the bins randomly. Patterns in the colour give

a) default

c) fluctuation

5.4 Mosaic Plots

117

b) same binsize

d) (cid:2)2 diagram

Fig. 5.10. Sample mosaic plots for each of the variations in Table 5.4. These plots
are based on a Poisson simulation, and are therefore meant to demonstrate mosaic
plots that do not show any informative structure. The bars to the right and below
in plots (b) and (d) label the individual variable values.

an indication of which interaction between the variables to include in a
model.

Variation (b) shows a same binsize mosaic, where all bins have the
same size, which emphasizes zero count combinations most. In the ex-
ample of Figure 5.10, two cells are empty — which is not far from the
expected number of empty cells (5000 · e−5000/729 ≈ 5.25).

The ﬂuctuation diagram, variation (c), is closely related to the same
binsize variation. Starting from a same binsize mosaic, the rectangles
are shrunk according to the number of cases in each combination. That
way, the area of each cell is, again, proportional to the number of cases it
represents. In Figure 5.10, there is no structure in the cell sizes visible
indicating the absence of association between the variables.

Deviations from the expected diagram are now used in the two follow-

ing examples to ﬁnd “interesting” cells.

118

5 Multivariate Categorical Data — Mosaic Plots

Primary Place of WWW Access

Friend to Other

School

Work

Primarily work

Primarily home

Home

T
e
x
a
s

l

F
o
r
i
d
a

G
e
o
r
g
a

i

N
e
w
Y
o
r
k

C
a

l
i
f
o
r
n
a

i

O
h
o

i

I
l
l
i

n
o
i
s

M
i
c
h
g
a
n

i

i

W
a
s
h
n
g
t
o
n

M
a
s
s
a
c
h
u
s
e
t
t
s

P
e
n
n
s
y
v
a
n
a

i

l

K
e
n
t
u
c
k
y

l

A
a
b
a
m
a

C
o
n
n
e
c
t
i
c
u
t

A
r
i
z
o
n
a

l

C
o
o
r
a
d
o

i

M
n
n
e
s
o
t
a

T
e
n
n
e
s
s
e
e

O
r
e
g
o
n

M
i
s
s
o
u
r
i

M
a
r
y
a
n
d

l

W
i
s
c
o
n
s
i
n

i

I
n
d
a
n
a

O
n
t
a
r
i
o

A
u
s
t
r
a

l
i

a

N
e
w
J
e
r
s
e
y

N
o
r
t
h

C
a
r
o

l
i

n
a

U
n
i
t
e
d

i

K
n
g
d
o
m

V
i
r
g
n
a

i

i

W
e
s
t

V
i
r
g
n
a

i

i

S
w
e
d
e
n

H
a
w
a

i
i

Q
u
e
b
e
c

l

A
a
s
k
a

I
d
a
h
o

M
i
s
s
i
s
s
i
p
p

i

R
h
o
d
e

I
s
l
a
n
d

Country

M
a
n
e

i

N
e
w
Z
e
a
a
n
d

l

N
e
w
M
e
x
i
c
o

N
e
w
H
a
m
p
s
h
i
r
e

I
o
w
a

A
r
k
a
n
s
a
s

G
e
r
m
a
n
y

U
t
a
h

l

A
b
e
r
t
a

N
e
v
a
d
a

K
a
n
s
a
s

l

O
k
a
h
o
m
a

N
e
t
h
e
r
l
a
n
d
s

L
o
u
i
s
i
a
n
a

i

W
a
s
h
n
g
t
o
n
D
.
C
.

N
e
b
r
a
s
k
a

A
f
g
h
a
n
i
s
t
a
n

t
o

P
o
r
t
u
g
a

l

S
w

i
t
z
e
r
l
a
n
d
t
o
S
w

i
t
z
e
r
l
a
n
d

B
r
i
t
i
s
h

S
o
u
t
h

C
a
r
o

l
i

n
a

l

C
o
u
m
b
a

i

Fig. 5.11. Fluctuation diagram of Country vs Primary Access. The categories in
each variable are sorted by absolute numbers. Countries with less than 20 users in
total have been grouped together.

Both examples are based on the assumption that there is no depen-
dency between the variables shown. The diagrams make deviations from
this assumption easy to spot in two different ways. The ﬂuctuation dia-
gram in Figure 5.11 shows the variables Primary Place of WWW Access
and Country. The categories of both variables are sorted according to the
number of participants in each category. This ranking of the categories
is reﬂected in each of the rows and columns of a ﬂuctuation diagram if
the variables are independent of each other. “Unusual” cells are therefore
those that are — compared to their surroundings — too small or too large.
One of the most obvious examples in Figure 5.11 is the high number of
users in the UK giving school as their primary access to the web; rela-
tively few users from Washington, D.C., The Netherlands, and Germany
give home as their primary access to the web. For these countries, the
primary access to the web is stated as primarily work.

Figure 5.12 shows the diagram for a χ2 test of independence between
Country and Opinion on Censorship. The cell sizes are proportional to the
product of the marginal distributions. Red- and blue-coloured areas show
the strength of deviation from independence. Blue-coloured areas indi-
cate a positive residual: more cases were observed than would have been
expected; red areas accordingly show negative residuals, where fewer
cases were observed than would have been expected. The question asked
in the survey was “Do you agree with the following statement: ‘Certain
information should not be published on the internet?’ .” The strongest dis-
agreement came from Wisconsin, European countries, and Canada. The
statement found most support in Connecticut, California, and Michigan.

5.4 Mosaic Plots

119

Opinions on Censorship

agree
somewhat

neither agree
nor disagree

disagree
somewhat

disagree
strongly

G
e
o
r
g
a

i

l

F
o
r
i
d
a

T
e
x
a
s

N
e
w
Y
o
r
k

C
a

l
i
f
o
r
n
a

i

I
l
l
i

n
o
i
s

O
h
o

i

M
i
c
h
g
a
n

i

i

W
a
s
h
n
g
t
o
n

M
a
s
s
a
c
h
u
s
e
t
t
s

P
e
n
n
s
y
v
a
n
a

i

l

A
r
i
z
o
n
a

l

C
o
o
r
a
d
o

i

M
n
n
e
s
o
t
a

T
e
n
n
e
s
s
e
e

O
r
e
g
o
n

M
i
s
s
o
u
r
i

M
a
r
y
a
n
d

l

W
i
s
c
o
n
s
i
n

i

I
n
d
a
n
a

O
n
t
a
r
i
o

A
u
s
t
r
a

l
i

a

N
e
w
J
e
r
s
e
y

N
o
r
t
h

C
a
r
o

l
i

n
a

U
n
i
t
e
d

i

K
n
g
d
o
m

V
i
r
g
n
a

i

i

A
f
g
h
a
n
i
s
t
a
n
t
o
P
o
r
t
u
g
a

l

S
a
s
k
a
t
c
h
e
w
a
n
t
o
S
w

i
t
z
e
r
l
a
n
d

S
o
u
t
h

C
a
r
o

l
i

n
a

Country

K
e
n
t
u
c
k
y

l

A
a
b
a
m
a

C
o
n
n
e
c
t
i
c
u
t

Fig. 5.12. Diagram of a χ2 test of independence between Country and Opinion on
Censorship from the internet survey data. Red areas indicate negative residuals
(appear dark gray); blue areas show positive residuals (appear black).

5.4.4 Gray-shading

As well as different layouts, gray-shading of the bins can be used to em-
phasize a property or encode further information into the diagram. Fig-
ure 5.13 shows a mosaic plot in same binsize mode for the answers to the
question “How did you hear about the survey?” There were nine possi-
ble answers: Banner, Friend, Mailing List, Printed Media, Remembered,
Search Engine, Usenet News, WWW Page, and Others, yielding a total of
29 possible combinations. Figure 5.13 gives an overview of the choices
made. Most users reported only one source, which results in lots of empty
cells — more than 20% of all possible combinations are empty. To make
empty cells visible but distinguish them from other cells, empty cells are
marked by a small circle in the middle of the cell. Whenever a combi-
nation is empty during the construction of a mosaic plot, this cell is not
split further. This means that higher-order combinations of empty cells
are combined into one large cell in the ﬁnal display, making the result
easier to interpret. In Figure 5.13, the largest cluster of empty cells is the
combination corresponding to the tile in the middle of the bottom row. No
user had heard about the survey in the combination of printed media and
a friend and remembered from a past experience but not seen the survey
from the WWW site. In the same binsize representation, all bins carry the

120

5 Multivariate Categorical Data — Mosaic Plots

same weight visually. To emphasize differences in the number of counts,
additional colouring is used. The gray-shading represents the actual cell
size. Lighter colours mean higher numbers of users reporting. The largest
cell corresponds to the choice “heard from WWW page” only.

By default, the relationship between cell size and colour is linear. De-
pending on the distribution of cell sizes, different transformations em-
phasize different aspects. In Figure 5.14, the following transfer function
is used: Assume cell sizes x have been standardized to a range of (0, 1) by
x ⇒ x − min
max − min

. The transfer function fα,β is deﬁned as:

(cid:9)

fα,β(x) =

α1−β · xβ
1 − (1 − α)1−β · (1 − x)

β

0 ≤ x ≤ α;
, α ≤ x ≤ 1,

resulting in a continuous and differentiable function with a ﬁxpoint at α
and f (cid:4)(α) = β. For skew data, as is used for the gray-shading shown in
Figure 5.14, the default parameters (α, β) = (0.5, 1) yield a mapping that
is predominantly black with a few instances of white in between for bins
with very large numbers of cases (middle of Figure 5.14).

By switching from the linear mapping to a mapping with (α, β) =
(0.8, 0.2), an S-shaped function results, which is able to differentiate be-

d
e
r
e
b
m
e
m
e
R

t
s
i
L

g
n

i
l
i

a
M

i

e
n
g
n
E

h
c
r
a
e
S

s
r
e
h
t
O

Printed Media
Friend
Usenet News
Banner
WWW Page

Fig. 5.13. Mosaic Plots of all possibilities of “How you Heard about the Survey?”
Gray-shading has been used to mark cell sizes. Empty cells are combined where
possible and tagged by a circle. 112 of the possible 512 combinations are empty.

5.4 Mosaic Plots

121

d
e
r
e
b
m
e
m
e
R

t
s
i
L

g
n

i
l
i

a
M

i

e
n
g
n
E

h
c
r
a
e
S

s
r
e
h
t
O

d
e
r
e
b
m
e
m
e
R

t
s
i
L

g
n

i
l
i

a
M

i

e
n
g
n
E

h
c
r
a
e
S

s
r
e
h
t
O

d
e
r
e
b
m
e
m
e
R

t
s
i
L

g
n

i
l
i

a
M

i

e
n
g
n
E

h
c
r
a
e
S

s
r
e
h
t
O

Printed Media
Friend
Usenet News
Banner
WWW Page

Printed Media
Friend
Usenet News
Banner
WWW Page

Printed Media
Friend
Usenet News
Banner
WWW Page

Fig. 5.14. Dialog box for setting up the parameters of the brightness function. From
top to bottom the parameters are α = 0.8, β = 0.2; α = 0.5, β = 1 (default), and
α = 1, β = 0.08.

122

5 Multivariate Categorical Data — Mosaic Plots

tween bins with small numbers of cases. Overall, the mosaic plot is lighter
(top of Figure 5.14), introducing various shades of dark gray.

The plot on the bottom of Figure 5.14 is the lightest in colour, with the
biggest spread of differentiation among bins with small numbers of cases.
The mapping function has parameters (α, β) = (1, 0.08), i.e., the previous
S-shape is replaced by a function with strictly positive curvature.
Gray-shading is discussed for binned plots in Section 6.2.3.

5.4.5 Rescaling Binsizes

Typically, the distributions of binsizes in mosaic diagrams of variables
with high numbers of categories are very skew. A few cells dominate the
diagram if the areas are directly proportional to cell sizes.

The focus can be brought back to smaller bins if they are artiﬁcially
increased in size — up to a speciﬁed upper limit (ceiling-censored zoom-
ing). Figure 5.15 shows two ﬂuctuation diagrams of the set of nine binary
variables related to “How did you hear about the Survey?” Each of these
variables corresponds to a checkmark choice in the survey. The choices
were given as Followed link from another Web page; Followed banner
from another Web page; Found link using a search engine; Saw postings to
WWW related newsgroups; Received email from www-surveying mailing
list; Was told URL by friend; Read about it in a newspaper/magazine; Re-
membered to participate from last survey; and Other sources. On average,
1.09 sources were checked by each person participating in the survey, so
only very few combinations of the nine sources out of the 512 possible
ones will have a large number of cases in them. This becomes apparent in
the default ﬂuctuation diagram on the left side of Figure 5.15, where very
few rectangles are visible. The largest bin corresponds to Followed link
from another Web page as the only source of knowledge about the survey,
comprising 47.5% of all the data.

d
e
r
e
b
m
e
m
e
R

t
s
i
L

g
n

i
l
i

a
M

i

e
n
g
n
E

h
c
r
a
e
S

s
r
e
h
t
O

d
e
r
e
b
m
e
m
e
R

t
s
i
L

g
n

i
l
i

a
M

i

e
n
g
n
E

h
c
r
a
e
S

s
r
e
h
t
O

Printed Media
Friend
Usenet News
Banner
WWW Page

Printed Media
Friend
Usenet News
Banner
WWW Page

Fig. 5.15. Fluctuation diagrams of all 512 possibilities of “How did you hear about
the Survey?” In the diagram on the right, small bins are over-emphasized. Bins
that have already reached the “ceiling” limit are marked by a red frame.

5.5 Summary

123

On the right side of Figure 5.15, the bins have been made bigger while
keeping the aspect ratio ﬁxed. The two largest bins have reached the max-
imum space limit and are marked by red frames. In all four quadrants of
the ﬂuctuation diagram, additional bins appear — most of them fall in the
upper left quadrant, very few in the lower right. At the very bottom right
of the plot on the right there is a small group of people who answered yes
to all nine options (querying reveals it was 27 of them).

Instead of focusing on bins with small numbers of cases, the interest
might be on the largest bins while treating the smaller bins as noise.
This suggests a different approach to visualize cell sizes by starting from
a same binsize display and blending out cells with small cell sizes (ﬂoor-
censored zooming).

The importance of zooming functionality for large datasets is also dis-

cussed in Section 4.4.3.

5.4.6 Rankings

In the case of extremely skew bin distributions, as with the data from
“How did you hear about the Survey?” it is worth just concentrating on
the ranking of each combination. Instead of the true cell sizes, the ﬂuc-
tuation diagram of Figure 5.16 shows areas that are proportional to the
cells’ order, starting with an order value of 0 for empty cells up to 512 for
the combination with the most entries: “heard from WWW page only.”

5.5 Summary

Large datasets imply not only large numbers of cases but also large num-
bers of categories in each variable. Large numbers of cases do not af-
fect area-based diagrams, such as barcharts or mosaic plots, very much.
With increasing numbers of variable categories, though, even the sim-
plest tasks such as comparisons of bin heights in barcharts become more
difﬁcult. Interactive tools such as reordering bins, grouping of bins or
rescaling the axes have been introduced to overcome these problems.

It is important to keep track of small numbers of data points and at
the same time provide overviews of the data. With high numbers of cate-
gories, the one-dimensional distribution of variables tends to become very
skew — which makes scaling awkward and comparisons virtually impos-
sible: a few categories usually dominate the whole display. Methods to al-
leviate this problem are a change of the axes or weighted displays, where
the weighting variable can, for example, represent just the rank of a cat-
egory.

For higher-dimensional displays such as the mosaic plot, the problems
due to high numbers of categories are multiplied because they arise in
each dimension. Additionally, higher-order effects arise: the data tables

124

5 Multivariate Categorical Data — Mosaic Plots

d
e
r
e
b
m
e
m
e
R

t
s
i
L

g
n

i
l
i

a
M

i

e
n
g
n
E

h
c
r
a
e
S

s
r
e
h
t
O

Printed Media
Friend
Usenet News
Banner
WWW Page

Fig. 5.16. Fluctuation diagram for “How did you hear about the Survey?” The area
of each cell corresponds to the cell’s rank.

tend to have many cells with zero counts and the corresponding mosaic
plot therefore has many empty bins. The skewness of the distribution af-
fects the display even more. Grid-based variations of mosiac plots, such
as ﬂuctuation diagrams, or even a simple approach such as same bin-
size diagrams are very helpful for a ﬁrst representation of the data. With
additional sorting and grouping techniques, interesting patterns in the
data often take the form of cells that are locally “too big” or “too small”.
Within overview displays, it is possible to identify data anomalies and
small groups with distinct behaviours.

6

Rotating Plots

Dianne Cook and Leslie Miller

Love can tell and love alone, whence the million stars are strewn.

Robert Bridges, My Delight and Thy Delight

6.1 Introduction

This chapter discusses using preprocessing of multivariate real-valued
data into projections displayed as scatterplots converted to images and
movies to provide graphical displays for large quantities of data. The
views are augmented with interaction, so that the user can paint areas
and have small subsets of the full dataset overlaid as real-time graphics.
Looking up the full dataset is achieved by an indexing of the projections
that is created in the data preprocessing. An application of the methods to
multivariate spatio-temporal data, seasonal metric data from the United
States Geological Survey, is discussed.

Large spatio-temporal datasets are being compiled to study global cli-
mate and environmental conditions across the globe. A lot of data is be-
ing collected with the support of the United States government and is
being made available to the general public: see, for example, http://
www.pmel.noaa.gov/tao, http://www.usgs.gov/satellitedata.
html, http://www.usgs.gov/digitaldata.html and http://www.
ucar.edu/fac data/data-resources.html. One of the hurdles to us-
ing existing graphics tools on these data is the size. For real-time visual-
ization, large data present some challenges:

1. The views need to be created rapidly enough to be displayed in frac-

tions of a second, especially for dynamic graphics;

2. A user needs to be able to interact with the views and have the re-

sponse occur in fractions of a second;

3. The screen real estate is limited and with large data many cases could

map to the same pixel;

126

6 Rotating Plots

4. Case-reduction methods for multivariate real-valued data, while suf-
ﬁcient for mean and variance analysis, are inadequate for visualiza-
tion where the tasks are to ﬁnd anomalies, rare events, or uncommon
relationships.

The objective is to produce visual tools that provide displays swiftly, al-
low the user to interact with the view, and maximize the amount of data
represented within the limits of screen resolution. For this chapter, the
goal is to demonstrate that this is achievable for a million cases of multi-
variate data.

As early as 1990, McDonald, at the University of Washington, demon-
strated software for rotating more than a million points, but he never pub-
lished these research ﬁndings. He achieved rotation of a million points by
preprocessing the scatterplots of the projections of 3-D to 2-D into images.
The rotation started slowly and discontinuously: ﬁrst one view, then the
next, then the next, stepwise as the images for each projection from 3-D to
2-D were created, and then it would scream along at breakneck pace once
the full set of images for 360o rotation was created. He could also brush
in a scatterplot of more than a million points linked to other scatterplots.
McDonald achieved this by controlling the plot updates — updates were
only made when the mouse button was released. The scatterplots were
also displayed at pixel resolution, gray scale images, and colour was over-
laid in layers for each brush action. The software was used to examine
data generated from remote-sensing instruments, that is, images repre-
senting a spectral band. This type of data typically comes on the order of
a million points, 1, 024 × 1, 024 = 1, 048, 576, and multiple bands (dimen-
sions).

The research reported in this chapter revisits McDonald’s work, ad-
ding methods and software for visualizing large, multivariate space-time
dependent data. It is organized as follows. The rest of this section in-
troduces notation for the data, describes visual methods commonly used
for small datasets, and provides more information on related work. Sec-
tion 6.2 describes the approach to scaling methods to a million cases. Sec-
tion 6.3 overviews the software, called Limn, developed to test the ap-
proach, and Section 6.4 applies the methodology to seasonal metric data
from the United States Geological Survey (USGS).

6.1.1 Type of Data

The data are real-valued multivariate data having at least a million cases
(instances, examples), but probably fewer than 15 variables (features, at-
tributes). In some examples, there may be associated class information,
such as an estimate of land use, and there may be associated time and
spatial information.

In mathematical notation, the data are expected to have the form

6.1 Introduction

127

X =

⎡

⎢
⎢
⎢
⎣

x11 x12 . . . x1p
x21 x22 . . . x2p
...
...
...
xn1 xn2 . . . xnp

. . .

⎤

⎥
⎥
⎥
⎦

n×p

⎤

⎥
⎥
⎥
⎦

,

⎡

⎢
⎢
⎢
⎣

=

tuple1
tuple2
...
tuplen

where n is the number of cases, and p is the number of variables. The
(cid:17)(cid:4)
associated class vector may be denoted as C =
, the time
⎡
⎤
s11 s12
s21 s22
...
...
sn1 sn2

and the spatial context as S =

context as T =

c1 c2 . . . cn

t1 t2 . . . tn

⎥
⎥
⎥
⎦.

⎢
⎢
⎢
⎣

(cid:17)(cid:4)

(cid:16)

(cid:16)

There may be missing values in the data.

A data projection, as used to generate a scatterplot, for example, can

be denoted as

Y = XA =

⎡

⎢
⎢
⎢
⎣

x11 x12 . . . x1p
x21 x22 . . . x2p
...
...
...
xn1 xn2 . . . xnp

. . .

⎤

⎥
⎥
⎥
⎦

n×p

⎡

⎢
⎢
⎢
⎣

a11 a12
a21 a22
...
...
ap1 ap2

⎤

⎥
⎥
⎥
⎦

p×2

⎡

⎢
⎢
⎢
⎣

=

y11 y12
y21 y22
...
...
yn1 yn2

⎤

⎥
⎥
⎥
⎦

n×2

where A is an orthonormal matrix, that is the columns are vectors of
length 1 and each is orthogonal to all other columns.

6.1.2 Visual Methods for Continuous Variables

There is a lot of choice in graphical methods for displaying aspects of mul-
tidimensional continuous data: tours (Asimov; 1985; Cook et al.; 1995;
Wegman; 1991); scatterplot matrices (Carr; 1985; Becker and Cleveland;
1987); parallel coordinate plots (Inselberg; 1985; Wegman; 1990); and
conditional plots (Becker et al.; 1996) (cf. Section 2.3.2). Scatterplots of
two real-valued variables underlie several of the above methods, and they
can be thought of as projections, projecting the data from p to 2 dimen-
sions.

Linking between multiple plots provides ways of relating information,
giving insight into high-dimensional structure in the data (see also Sec-
tion 4.3.2). A commonly available approach is linked brushing, where
highlighting features in one rendering highlights the corresponding fea-
tures in the others. Linking marginal views allows the viewer to explore
conditional dependencies amongst variables. For example, Figure 6.1
shows plots from the olive oil dataset. In Region 2, linoleic acid is rela-
tively high and oleic acid is relatively low (middle plot). A combination of
variables 6, 7, 9, 10 (oleic, linoleic, arachidic, eicosenooic) separates Re-
gion 2 points from all other points (right plot).

128

6 Rotating Plots

Fig. 6.1. Linking between several views: (left) brushing on class value, (middle)
scatterplot of two variables, (right) tour projection.

Linking is well-documented in Cleveland and McGill (1988) and Buja

and Tukey (1991).

There are some articles in the collection Card et al. (1999) and some
brief treatments in Spence (2000). Numerous software environments pro-
vide these types of tools: for example, GGobi (http://www.ggobi.org),
Mondrian (http://www.theusRus.de/Mondrian), MANET (http://
www.rosuda.org/Manet/), DataDesk (http://www.datadesk.com)
, JMP (http://www.jmpdiscovery.com), Orca (http://software.
biostat.washington.edu/orca/), XLispStat (Tierney; 1991), Spotﬁre
(http://www.spotfire.com), XmdvTool (http://davis.wpi.edu/
∼xmdv/). For the spatial data used in this chapter, the best description
of interactive graphical methods can be read in Unwin et al. (1990) and
Haslett et al. (1991).

6.1.3 Scaling Up Multiple Views for Larger Datasets

Chapter 3 introduced several general techniques to scale up data displays
for large datasets. Dan Carr has published several articles on large data
visualization for scatterplots, using mostly static binned views (Carr;
1991). Wegman et al. (1998) developed a “pixel tour” for displaying
(multivariate spatial-context) spectral data, in which sequences of one-
dimensional projections of the multiple spectral bands are displayed as
gray scale images. This is very useful for detecting major events in the
spatial domain, such as mines in a mineﬁeld.

6.2 Beginning to Work with a Million Cases

6.2.1 What Happens in GGobi, a Real-time System?

(Swayne et al.; 2003) was developed for graphical
The software GGobi
projection pursuit in multivariate data. As with all research software it

6.2 Beginning to Work with a Million Cases

129

was used ﬁrst for small datasets, and now interest lies in how well it can
cope with large datasets and what additional developments may need to
be introduced.

It is possible to get a million cases of multivariate data into the soft-
ware GGobi (at least on a Linux system). The startup time is long: it
took about 7 minutes. This is probably due to the ﬁle-reading routines
that read the data a line at a time and block further computation until
the entire ﬁle is read. Once the data have been imported, there are two
problems: overplotting and slow response time. A few modiﬁcations to the
usual user behaviour can accommodate exploring this many cases:

• Use a pixel-sized glyph. The smaller glyph reduces the overplotting
that obscures the data distribution of the large number of points.
• Keep the brush off while positioning it in a plot, and turn it on when
ready to paint a subset of the data. This is equivalent to McDonald’s
method for controlling the plot updates. The plot is not updated con-
tinuously when the brush is moving. It will be updated only when the
brush is turned on again.

• Keep the tour paused because the re-plotting is too slow to give smooth
continuous motion. Use the scramble button, which offers random pro-
jections of the data.

• Avoid methods which involve real-time binning of the data, such as
ASH (see also Section 2.3.1). The binning code in this implementa-
tion is too inefﬁcient to compute in real-time with this size of dataset.
Methods like α-blending — putting the load onto the graphics hard-
ware — might be more efﬁcient (see Section 3.5).

• Keep the number of open displays small. Fewer open displays means

less plot updating.

6.2.2 Reducing the Number of Cases

How can the number of cases in a multivariate dataset be reduced?
One natural approach is to bin the data in the multivariate space (p-
dimensional), either by using rectangular boxes or by bins induced by
a cluster algorithm. Figure 6.2 (left and middle) illustrates these ap-
proaches. An alternative approach is to bin the data in the space that will
be plotted, e.g., 2-D for a scatterplot or a projection of the data (Figure 6.2
right).

There has been considerable research into case reduction in the mul-

tivariate space. Techniques that are commonly in use are

• Binning: cases are gridded into cells (Figure 6.2 left). The points in
the cell are represented by the bin center or by the average of the
points in the cell, and a count of how many cases are in the cell. Us-
ing the average value better reﬂects the data distribution within the

130

6 Rotating Plots

Fig. 6.2. Illustration of three different types of binning for 3-D data: (left) rect-
angular binning in the multivariate space, (middle) binning using a clustering
algorithm, (right) binning of the projected data.

cell when the cases are non-uniformly distributed. Binning is inefﬁ-
cient when there are more than several variables. The number of bins
needed is exponential in the number of variables. If each variable is
binned into 10 cells, there are 102 cells for 2 variables and 1010 cells
for 10 variables. It also creates visual artifacts, grid patterns, which
can distract the user from seeing the structure of the data. There is
also serious potential for loss of resolution with binning.

• Clustering: a cluster algorithm is run, usually k-means with k set to
be very large (Figure 6.2 middle). Then cases are binned to their clos-
est cluster mean, and each case has an associated weight representing
the count of the number of cases in the bin. (See, for example, Posse
(2001).)

• Data squashing: data are binned as a ﬁrst step, then statistics are
computed on each bin, e.g. mean, variance/covariance. These statistics
are then used to generate a new sample in each bin to construct a
reduced case dataset with similar statistical properties to the original
one (DuMouchel et al.; 1999).

With any of these methods the resulting dataset is of the form:

⎡

⎢
⎢
⎢
⎣

X ∗ =

x11 x12 . . . x1p
x21 x22 . . . x2p
...
...
...
xn∗1 xn∗2 . . . xn∗p

. . .

⎤

⎥
⎥
⎥
⎦

n∗×p

⎤

⎥
⎥
⎥
⎦

⎡

⎢
⎢
⎢
⎣

w1
w2
...
wn∗

W =

where n∗ < n and each case has an associated count or weight, wi, i =
1, . . . , n∗, corresponding to the relative representation of this combination
of values in the full dataset. These techniques were explored in Han
(2000), but did not give satisfactory results. Binning may be appropriate
for numerical analysis, when a mean or variance analysis is the focus; but
when ﬁnding anomalies and deviations from a trend, the artiﬁcial cluster
structure induced by the binning confounds the task (Figure 6.3).

6.2 Beginning to Work with a Million Cases

131

Fig. 6.3. Two views of ﬁve-dimensional data that have been binned to 30(!) cells
per variable. There is artiﬁcial clustering simply due to the binning.

Because of the shortcomings of techniques to reduce the size of the
multivariate space, the approach concentrates on binning induced by the
screen real estate for each projection (Figure 6.2 right). The binning will
be different for each projection, but this form of binning also induces a
reduced size structure on the data. The binning induced by the screen
real estate essentially results in case reduction for each projection: screen
horizontal position, Sx, and screen vertical position, Sy, and a count or
weight corresponding to the number of points plotted at the pixel, WSxSy .
(An ID list, Px,y,j, j = 1, . . . , #number of points at pixel Sx, Sy, is also
deﬁned to refer to the row value of the original data matrix.) For example,
if n = 1, 000, 000 and the display window is 200 × 200 then there are at
most 40, 000 plotting positions, so that the data are reduced from n =
1, 000, 000 to n∗ ≤ 40, 000 in each projection. Multiple projections of the
data are created. This structure is utilized to build a fast lookup system
for linking points between plots. Figure 6.4 illustrates the data projection
into a window on screen: the raw data are standardized and projected and
then scaled again to be represented at a screen position.

6.2.3 Density Estimation

The binned data projection is represented as a density plot where the bin
count for each pixel is coded as a gray scale value. The transfer function
used is gray scale = 255 ×

. Figure 6.5 shows the function

(cid:6)p

(cid:5)

count
maxcount

for several different values of the power, p. The reason for using a power
transfer function is that the human eye cannot readily discern differences
between adjacent gray values on a linear scale. This transfer function

132

6 Rotating Plots

Fig. 6.4. Data are projected into pixel locations in a screen on the window. Black
represents a pixel that contains at least one data point, gray represents no data at
the pixel. The index is built only on pixels containing data.

was chosen after examining the techniques discussed in Huang et al.
(1997) and the lecture notes for Purdue University course EE637 Dig-
ital Image Processing I http://dynamo.ecn.purdue.edu/∼bouman/
ee637/. (Another alternative, allowing more ﬂexible transfer functions,
is described in Section 5.4.4 and illustrated in Figure 5.14.)

The power transfer function effectively reveals more perceptible reso-
lution of the data density in regions of high density, while also rendering
the extreme points in dark ink. This can be seen in Figure 6.6: the top row
of density plots uses a linear transfer function, and the effect of “lighten-
ing” up the high–density region as the power value decreases can be seen
going down the page. The function renders low density as black and high
density as white — similar to what you might physically see ﬂying over
snow-capped mountains. Zero count is also rendered as white. In general,
this is not a problem in tour views especially as the high–density regions
(white) are separated from the zero count (white) by low–density pixels
(black). And the dark ink for the low–density regions draws the eye to the
extreme anomalies — what you want to detect using graphics.

For multiple projections it may be useful to use the maximum bin
count over all the projections, rather than the maximum bin count in a
single image, to scale the bin counts. This will be particularly important
for maintaining smoothness of gray scale from image to image in a tour
movie sequence. The underlying concept of multiple views and common
scaling of plots is discussed in Section 4.4.3.

Two problems arise with density plots: both are evident in the exam-
ples in Figure 6.6. When the bin count is small and the maximum count

6.2 Beginning to Work with a Million Cases

133

Fig. 6.5. Transfer functions used to convert count to a gray scale: three different
power functions. The dotted lines represent linear transfer functions.

Fig. 6.6. Four very different bivariate distributions that have approximately the
same correlation, and their binned views using different power transfer functions:
(second top) linear, (second bottom) power = 0.6, (bottom) power = 0.3.

134

6 Rotating Plots

is large, the bin may get rendered as a zero count cell. This happens with
the linear transfer function for the example with a single extreme value
(second left column). The other transfer functions correctly display the
cell as having a non-zero count. The second problem occurs when a vari-
able takes integer values with the total number being less than the screen
real estate size (right column). The result is that strips of white space are
visible periodically, a very undesirable effect. These problems are similar
to those encountered when using histogram displays of single variables.
The ﬁrst problem can be alleviated by interactively changing the param-
eters of the transfer function, but the second cannot because the plot size
is set, the data binned, and then the plots produced, meaning that it is
not possible to interactively change the binning.

6.2.4 Screen Real Estate Indexing

A three-level index is created for each stored data projection. In its sim-
plest format, the index consists of three ﬁles.

• The Sx index ﬁle stores Sx coordinates of the non-empty pixels by in-
creasing order and pointers to the starting position of the correspond-
ing Sy-blocks in the Pixel index ﬁle.

• The Pixel index ﬁle stores Sy coordinates of the non-empty bins and
pointers to the starting position of the corresponding ID list in the
IDList index ﬁle. Each block of Sy coordinates is ordered in ascending
order.

• The IDList index ﬁle stores ID numbers that point to the raw data

tuples that are projected to a point in this plot image.

With a small dataset, a full ID list can be stored for each non-empty
bin of a binned projection. But for large datasets, with millions of tuples,
space considerations make it impractical to maintain such a full index.
To make use of the index for large datasets, it is necessary to reduce the
size of the ID lists while maintaining as much information as possible.
Two approaches have been used for this in the software, Limn. First, the
complete dataset is used to calculate the count, mean, minimum, and
maximum of the set of tuples that plot to a given point. The statistics
are stored in a fourth ﬁle that is linked back to the index ﬁles, allowing
Limn users access to the statistics during execution. Second, sampling of
the complete set of tuples that plot to a bin is used to provide access to a
reasonable set of tuples that represent the point. In the current prototype
random sampling is being used. Future development plans call for other
methods of sampling to be evaluated as Limn testing continues. A block
diagram of the current index structure is shown in Figure 6.7.

6.3 Software System

135

Fig. 6.7. Diagram illustrating the three layer index ﬁles structure.

6.3 Software System

The Limn system approaches the performance issues associated with real
time viewing of large datasets by preprocessing the data when possible.
This preprocessing can include both indexing the data for faster searches
and generating sets of images of the data to provide an animated back-
drop. Dynamic graphics can then be generated in front of the backdrop
images. The system is designed as a pluggable framework that allows
new modules to be easily incorporated into the data preprocessing and
viewing stages. Current modules provide support for reading in data from
multiple sources, creating images and their indices to the original data
for a scatterplot matrix, and viewing programs to display the images. A
tour animation sequence can be built as a quicktime movie or assembled
from a collection of image ﬁles. The View classes can be used to view the
images and interact with them.

Functionally, it reduces to two main activities: preprocessing the data

and viewing the results. Figure 6.8 outlines the two structures.

• The Limn preprocessing program controls processing the data into pro-
jections and indexing the projections. If an animation sequence is to be
the result, then a quicktime movie is created. A properties ﬁle is used

136

6 Rotating Plots

Fig. 6.8. Diagram illustrating the preprocessing (left) and viewing (right) struc-
tures.

to specify animation creation and appearance attributes. The program
creates the tour engine, rendering and recording type objects that are
speciﬁed in the properties ﬁle and starts the animation cycle. If a scat-
terplot matrix is to be the result, the Limn program stops at simply
building the index, and leaves the image rendering to the View part of
the program. For large datasets, the indexing routine will keep only a
sample of indices for the points at each pixel.

• The viewing part of Limn will display a scatterplot matrix or a tour
animation that allows the user to control the speed and direction of
the playback. Additionally, users can interact with the display while
an animation is running. By brushing an area of a plot, data points
will be selected and the viewer will draw graphics around each point
to highlight it. Because the highlighted graphics are drawn on top of
the scatterplot image, performance will begin to lag as the subset size
gets larger.

Users interact with a scatterplot image by brushing areas on the plot
and have the corresponding subset overlaid on other plots as real-time
graphics. When a bounding box is brushed on a scatterplot by a user,
the bounding box determines the range of Sx and Sy. The Sx index ﬁle
makes use of the Sx range to determine the relevant Sy lists in the Pixel
index ﬁle. The Pixel index ﬁle then matches the Sy range only to those Sy
values that satisﬁed the Sx range criteria to determine the ID lists in the
sample IDList index ﬁle. The tuples from the sample list for each relevant
scatterplot point are retrieved. The resulting data can then be linked to
the other scatterplots of interest to the user. The result is that brushing
can be applied to much larger datasets.

6.4 Application

137

6.4 Application

6.4.1 Data Description

The US Geological Survey’s (USGS) EROS Data Center produces bi-
weekly composite images of the Normalized Difference Vegetation Index
(NDVI). NDVI is a spectral index based on the surface reﬂectivity esti-
mated by the ﬁrst two spectral bands of the Advanced Very High Resolu-
tion Radiometer (AVHRR) which operates on several National Oceano-
graphic and Atmospheric Administration (NOAA) satellite platforms.
This combination is used as an index to measure the health and density
of plant biomass.

The datasets include estimates for the start, end, and peak of the
growing season for each square kilometer of the US, as well as measures
for biomass at those times and for net productivity over the growing sea-
son. The value of this dataset is that it can be used to classify land cover
by how it functions, not just by how it appears.

The seasonal metrics used in this study are SoST (Time of the start
of the growing season), SoSN (NDVI at the start of the growing season),
EoST (Time at the end of the growing season), EoSN (NDVI at the end of
the growing season), TotalNDVI (Integrated NDVI over the season — an
indicator for net productivity). In addition, each spatial region is classi-
ﬁed into one of 159 EPA ecoregions. There are 15 classes of agricultural
use (11/17 is corn/soybeans, 56 is grasslands, 94 is deciduous forest, 139 is
coniferous forest, 155 is barren ...) at each spatial location, and measure-
ments for several time periods. Data from 1989 are used for this example,
which comes to a little over a million points.

The primary objective of the data collection is to monitor the health
and density of the nation’s biomass over the growing season. It is also of
interest to examine land cover class in relation to seasonal metrics.

The data arrive as multi-band, 16-bit, binary ﬂat ﬁles with each band
corresponding to a different year and each ﬁle containing a single vari-
able. Each band in this dataset can be thought of as an image map of
a single variable for each year. Figure 6.9 demonstrates a three-year bi-
nary ﬁle for Start of Season Time. The data input capabilities of Limn are
limited to reading ASCII columns of text, where each column represents
a variable and each row represents a single latitude–longitude pair for
a single year. The data were preprocessed using other software to get it
into a format that Limn could use.

6.4.2 Viewing a Tour of the Data

Figure 6.10 displays some snapshots from the tour animation. The top
left display shows the full window with the user beginning to brush, and
the right top shows the results of the brushing (green). The plots below

138

6 Rotating Plots

Fig. 6.9. Representation of three–year binary ﬁle for the Start of Season Time.

show a sequence of three tour projections, where the subset is displayed
as real-time graphics on the movie images. What can be seen? In the
high-density region, there is substantial multimodality which most likely
corresponds to different land use types. Around this region, there are nu-
merous singleton or low–density pockets. The brushed subset is one such
pocket of points. As the tour progresses, this group spreads out, so it con-
tains spatial locations that have similar extreme values in two variables
but quite different values on other variables: that is, it is not clustered
tightly in the ﬁve-dimensional space.

In the same way, many of these anomalies on the fringe of the scat-
tercloud can be investigated. Small subsets are brushed and watched
through the movie, then turned off, and another group brushed and
watched. Could these be plots of land which are growing some unorthodox
crop or could there be some kind of data quality problem?

6.4.3 Scatterplot Matrix

Figure 6.11 displays the scatterplot matrix of the class variable and the
seasonal metric data. What can be seen from this?

In the ﬁgure, the classes corresponding to corn/soybean (green) and
grasslands (pink) are brushed. There are substantial differences between
these groups. One occurs in the SoSN and SoST plot (second row, right

6.4 Application

139

Fig. 6.10. Sequence of tour views demonstrating brushing a subset and subsequent
touring. The anomalous points on the fringe of the point cloud are the interesting
ones to investigate. One such group has been brushed here. It spreads out and
separates into smaller groups in other projections, so it is not a cluster in ﬁve-
dimensional space but rather in perhaps 2 of the variables only.

plot): grassland has relatively high SoSN (start of season NDVI), whereas
corn/soybeans have a very diverse distribution in these two variables.
There is also a difference in the EoSN, again grasslands have a fairly
concentrated moderate value for EoSN.

Overlaid on the matrix is a snapshot of the user controls. When the
user brushes in an image, a subset control tab is added to the control
panel, and also a subset information frame is added to the information
panel. The user can then control whether a sample from each pixel lo-
cation, or the full data, or statistics such as the mean are plotted over
the images. The user can also choose a different colour to represent the
subset.

140

6 Rotating Plots

Fig. 6.11. Scatterplot matrix of class and seasonal metric variables.

6.5 Current and Future Developments

This chapter has described building graphics on a dataset containing a
million cases of ﬁve-dimensional measurements. Further developments
include overlaying multiple movies and this has also been implemented
(although that work is not reported on in this chapter). The next stages
are to think of where the approach needs improving, of where the soft-
ware needs developing, and to test the tools with other applications.

6.5.1 Improving the Methods

With large datasets, there are too many points represented at each pixel
to store and overlay on other projections, so it is planned to explore sam-
pling schemes for the pixel populations. Currently, a threshold number is
used, and all pointers to the raw data are kept up to a ﬁxed sample size.

6.5 Current and Future Developments

141

Thus, pixels where few points are represented maintain the full list of
cases, but where there is high density a ﬁxed number of randomly sam-
pled points is kept.

6.5.2 Software

Large datasets are often stored as specially structured binary ﬁles, for
example, netCDF (www.unidata.ucar.edu/packages/netcdf/, hdf
(hdf.ncsa.uiuc.edu/), or some type of image format. Currently, the
data are extracted out of this format with other image manipulation
tools and stored in ASCII ﬁles. This is laborious and space-consuming.
It makes more sense to develop data parsers to work with the binary for-
mats.

The datasets will still be too large to operate the index preprocess-
ing on the entire dataset simultaneously, but it could be run on different
pieces of the data in parallel. We would like to explore this.

6.5.3 How Might These Tools Be Used?

As trivial as it might sound, one of the most likely uses of these tools is
data cleaning. This is an important part of any data analysis. Through
generating the example application in this chapter, several serious prob-
lems with the data were uncovered.

Exploring multivariate data graphically reveals many interesting fea-
tures in a dataset as the graphics in this chapter have shown. In future, it
is intended to use these tools to examine large datasets in a multivariate
manner, especially global weather patterns and anomalies.

7

Multivariate Continuous Data — Parallel
Coordinates

Rida Moustafa and Ed Wegman

As nearer marched the million feet of columns closing in.

Thomas Hardy, Leipzig

7.1 Introduction

Wegman (1995) has suggested that there are two relatively critical thresh-
olds in Data Mining. The ﬁrst occurs around 106 to 107 observations. At
this scale, visualizing individual observations, computation of O(n2) al-
gorithms, and data transfer over standard or even high-speed Ethernet
becomes problematic. Visualizing larger datasets would seem to require
resorting to visualizing density estimates or other summary methodol-
ogy. A second threshold appears when tertiary storage becomes neces-
sary. In 1995, this occurred around 1012 bytes, although only a few years
later terabyte storage on hard drives in a simple machine became feasi-
ble. Nonetheless, it is inevitable that data will ultimately be sufﬁciently
massive that tertiary storage mechanisms (magnetic tape silos) will be
necessary. In this setting, access speed is decreased by orders of magni-
tude, and interactive data analysis is not possible.

For categorical data (or data forced into a categorical framework),
seeing a million observations is slightly less problematic than seeing a
million, high-dimensional numerical observations. The mosaic plot, de-
scribed in Chapter 5, provides an excellent tool in the categorical frame-
work. Computer science-based data miners have resorted to the so-called
data cube, which is essentially a multivariate frequency table with con-
tinuous data quantized into a relatively small number of bins. While not
so easily visualized in dimensions larger than three, it does provide a
method that can relatively easily handle 106 or more observations.

The combination of parallel coordinates taken together with satura-
tion brushing has been demonstrated to handle at least 250,000 obser-
vations in eight dimensions or more (Wegman; 2003). This latter paper

144

7 Multivariate Continuous Data — Parallel Coordinates

also indicates that single categorical variables can be handled via paral-
lel coordinate displays using colour brushing to separate categories. All
of these techniques are effective for relatively large datasets because the
algorithms involved tend to be of O(n) complexity.

Parallel coordinates were introduced by Inselberg (1985), and he has
continued much of their recent mathematical development. Wegman
(1990) was the ﬁrst refereed paper suggesting the use of parallel coor-
dinates as a method for exploratory data analysis and data visualization.
In the approximately 20 years since the formal introduction of parallel
coordinates into the refereed literature, the parallel coordinate idea has
become universally recognized as an effective method for dealing with
multidimensional, numerical data.

As parallel coordinate plots have received much attention in the ﬁeld
of information visualization, various implementations are around. They
can roughly be classiﬁed into two groups. The ﬁrst group comprises the
tools primarily implementing parallel coordinate plot functionality as,
e.g., ExploreN (Carr et al.; 1997), CASSATT (Unwin et al.; 2003), or Xmd-
vTool (Rundensteiner et al.; 2002). The second group includes tools that
offer a far wider set of graphical tools and thus are not necessarily focused
on parallel coordinate plots like GGobi (Swayne et al.; 2003), Mondrian
(Theus; 2002b), or iPlots (Urbanek and Theus; 2003). There are certainly
more implementations; some of them are only commercially available,
others are extremely subject speciﬁc.

7.2 Interpolations and Inner Products

Consider a set of multivariate observations of the form ξi = (xi1, . . . , xid),
where i = 1, . . . , n is the index for the data set size and j = 1, . . . , d is the
index for the dimension. Perhaps the earliest multivariate visualization
tool was the Andrews plot (Andrews; 1972), which is given by

√

yiθ = xi1/

2 + xi2 sin(θ) + xi3 cos(θ) + xi4 sin(2θ) + xi5 cos(2θ) + · · · .

For sake of deﬁniteness, assume d is odd. Then consider the vector

n(θ) =

(cid:5)

1√
2

, sin(θ), cos(θ), . . . sin

(cid:5)

d − 1
2

(cid:6)

(cid:5)

θ

, cos

(cid:6)(cid:6)

.

d − 1
2

θ

Then, yiθ =< ξi, n(θ) >, the basic transformation for the Andrews
plot, is an inner product of an appropriate vector with each observation,
which, of course, is also a vector. If d is even, a simple modiﬁcation of n(θ)
is appropriate.

7.3 Generalized Parallel Coordinate Geometry

145

In a similar manner, the Grand Tour is constructed by ﬁrst forming
a generalized rotation matrix Q(φ12θ, φ13θ, . . . , φd−1,d,θ) and forming a ro-
tated coordinate system with unit vectors

nj(θ) = ej × Q(φ12θ, φ13θ, . . . , φd−1,d,θ), j = 1, . . . , d

where ej are the orthogonal basis vectors for the original coordinate sys-
tem and × refers to matrix multiplication. Then, yijθ =< ξ
nj(θ) > is
the projection of the ith observation into the jth rotated coordinate axis
at time θ. Thus the Grand Tour can be conceived of as simply an appropri-
ate set of interpolations using inner products. This is highly suggestive of
a perspective for viewing parallel coordinates and also raises the possi-
bility of additional suggestive interpolations. For a general description of
the Grand Tour see Section 2.3.2 and Buja et al. (1996). A more detailed
discussion of the framework in the context of parallel coordinates can be
found in Wegman and Carr (1993) or Wegman and Solka (2002).

i,

The projective geometry interpretation of parallel coordinates is well
known. See Dimsdale (1984), Inselberg (1985), and Wegman (1990). One
major feature is that points that are collinear in a two-dimensional Carte-
sian plot map into lines that are coincident in a two-dimensional parallel
coordinate plot. If the slope of the line forming the points in Cartesian
space is positive, the intersection of the corresponding lines in parallel
coordinate space occurs outside of the space between the two parallel co-
ordinates. Indeed, if the slope is +1 the lines in parallel coordinate space
are parallel and the intersection occurs at ∞. Visually, this is not easy
to diagnose. Conversely, if the slope of the line formed by the points in
Cartesian space is negative, the intersection of the corresponding lines
in parallel coordinate space occurs between the two parallel coordinate
axes and, thus, linear structure is easy to diagnose visually. Wegman has
called this the crossover effect. The crossover effect represents an easy
way to reveal linear or near-linear structure in one or more dimensions.
This is the motivation for additional interpolation methods.

7.3 Generalized Parallel Coordinate Geometry

The basic idea underlying parallel coordinates is to visualize hyper-
dimensional points in a sequence of parallel axes. The point ξ = (x1, x2,
. . . , xm) is visualized in parallel coordinates as a broken line (polyline)
connecting the points x1, x2, . . . , xm in m vertical or horizontal axes as
shown in Figure 7.1. Although some have a slight preference for horizon-
tal axes because of aspect ratio considerations on most computer screens,
the orientation of the axes is essentially immaterial.

Consider for the moment the two-dimensional case and consider the
following map: T (ξ), ξ ∈ R2, which maps a point ξ = (x1, x2) into a line.

146

7 Multivariate Continuous Data — Parallel Coordinates

axis m

xm

x4

axis 3

x2

axis 2

axis 1

x3

x1

x3

x2

x4

xm

x1

axis 1 axis 2

axis m

Horizontal Parallel coordinates

Vertical Parallel coordinates

Fig. 7.1. An m-dimensional point visualized in parallel coordinates.

This mapping can be constructed based on the transformation of the orig-
inal space into a parameter space as

T : ξ −→ (t, g(t)),

0 ≤ t ≤ 1,

where g(t) = (1 − t)x1 + tx2. This transformation is a convex relationship
between the ﬁrst variable and the second. Furthermore, note that g(t)
is in the form of a Lagrange linear interpolation of degree one. Suppose
the vector n(t) = (1 − t, t) is now considered and let ξ1 = (x1, x2). Then
T (ξ1) = < ξ1, n(t) > represents the parallel coordinate transformation as
an inner product form. Indeed, if in general ξj = (xj, xj+1), then the map-
ping for a general multivariate vector x =(x1, x2, . . . , xd) is represented
by

Tj(ξj) =< ξj, n(t) >, 0 ≤ t ≤ 1,

where Tj is the interpolation between the jth and the (j +1) parallel axes.
Notice that the values n(0) = (1, 0) and n(1) = (0, 1) form an orthonormal
basis for R2. If this particular interpolation leads to the Cartesian points
mapping into parallel lines, alternate interpolations may be more satis-
factory. Let us relabel the interpolating function n(t) = (1 − t, t) as n1(t)
and introduce the following interpolations:

7.3 Generalized Parallel Coordinate Geometry

147

n1(t) = (1 − t, t) with 0 ≤ t ≤ 1, where n1(0) = (1, 0), n1(1) = (0, 1)

n2(t) = (t − 1, t) with 0 ≤ t ≤ 1, where n2(0) = (−1, 0), n2(1) = (0, 1)

n3(t) = (1 − t, −t) with 0 ≤ t ≤ 1, where n3(0) = (1, 0), n3(1) = (0, −1)

n4(t) = (t − 1, −t) with 0 ≤ t ≤ 1, where n4(0) = (−1, 0), n4(1) = (0, −1).

In all four cases, the values of nk(t) at 0 and 1 form an orthonormal ba-
sis for R2. n2 has the effect of ﬂipping the x1 axis, n3 has the effect of
ﬂipping the x2 axis, and n4 has the effect of ﬂipping both axes. These are
illustrated in Figure 7.2. Notice that cases with parallel lines with slope
equal to +1 can be made to intersect by an appropriate substitution of the
interpolating vector.

6

4

2

0

6

4

2

0

6

4

2

0

6

4

2

0

0

0

0

0

1

0.5

0

0

1

0.5

0

0

1

0.5

0

0

1

0.5

0

0

5

5

5

5

1

0.5

0
(cid:239)5
1

1

0.5

0
(cid:239)5
1

0

5

1

0.5

0
(cid:239)5
1

0

5

0.5

0.5

0.5

0
(cid:239)5
1

0

5

0
(cid:239)5
1

0

5

0
(cid:239)5
1

0.5

0.5

0.5

0
(cid:239)5
1

0

5

0
(cid:239)5
1

0

5

0
(cid:239)5
1

5

5

5

0.5

0.5

0.5

0
(cid:239)5

5

0

0
(cid:239)5

5

0

0
(cid:239)5

5

0

0

0

0

Fig. 7.2. The data are in column 1. Their parallel coordinate plots with 4-possible
normal vectors of n(t) are in columns 2–5.

148

7 Multivariate Continuous Data — Parallel Coordinates

A polar representation can also be made as follows:

n5(θ) = (cos(θ), sin(θ)) with θ ∈ [0, π/2] and n5(0) = (1, 0), n5(1) = (0, 1)

n6(θ) = (− cos(θ), sin(θ)) with θ ∈ [0, π/2]; n6(0) = (−1, 0), n6(1) = (0, 1)

n7(θ) = (cos(θ), − sin(θ)) with θ ∈ [0, π/2]; n7(0) = (1, 0), n7(1) = (0, −1)

n8(θ) = (− cos(θ), − sin(θ)) with θ ∈ [0, π/2]; n8(0) = (−1, 0), n8(1) = (0, −1).

Again, in all four cases the values of nk(θ) at 0 and π/2 form an or-
thonormal basis for R2 and have essentially the same ﬂipping effect as
the previous four interpolations. The effect of the sinusoidal interpola-
tions is illustrated in Figure 7.3. We refer to these as polar parallel coor-
dinate plots.

6

4

2

0

6

4

2

0

6

4

2

0

6

4

2

0

0

0

0

0

1

0.5

0

0

1

0.5

0

0

1

0.5

0

0

1

0.5

0

0

5

5

5

5

2

0

(cid:239)2

(cid:239)5
2

0

(cid:239)2

(cid:239)5
2

0

(cid:239)2

(cid:239)5
2

0

5

5

5

0

5

10

15

0

5

10

15

0

5

10

15

(cid:239)2

(cid:239)5

5

0

5

10

15

4

2

0

(cid:239)2

(cid:239)4

4

2

0

(cid:239)2

(cid:239)4

4

2

0

(cid:239)2

(cid:239)4

4

2

0

(cid:239)2

(cid:239)4

(cid:239)5

0

5

(cid:239)5

0

5

(cid:239)5

0

5

(cid:239)5

0

5

Fig. 7.3. The data are in column 1. Their parallel coordinate plots using two inde-
pendent normals are in columns 2 and 3, with the polar view in column 4.

7.4 A New Family of Smooth Plots

149

7.4 A New Family of Smooth Plots

The discussion in Section 7.3 suggests that a more general idea of inter-
polation for parallel coordinates is possible and perhaps even desirable.
The additional computational overhead is minimal and alternatives may
prove to add insight in data exploration. Consider n(θ) = (cosk(θ), sink(θ))
0 ≤ θ ≤ π/2. Notice as before n(0) = (1, 0) and n(1) = (0, 1) forming the
orthonormal basis for R2. Letting g(θ) =< ξ1, n(θ) >, notice that

g(θ) = x1 cosk(θ) + x2 sink(θ)

⇒ g(cid:4)(θ) = −k x1 cos(k−1)(θ) sin(θ) + k x2 sin(k−1)(θ) cos(θ)

Thus for k ≥ 2, g(cid:4)(0) = 0 = g(cid:4)( π

2 ). This means that the interpolation
will be locally orthogonal to the coordinate axes. Consider an example
adapting this idea for a ﬁve-dimensional point. Let ξ = (x1, x2, x3, x4, x5)
and consider the following

g0(θ) = x1 cosk(θ) + x2 sink(θ), 0 ≤ θ ≤ π/2

g1(θ) = x2 sink(θ) − x3 cosk(θ), π/2 ≤ θ ≤ π

g2(θ) = −x3 cosk(θ) − x4 sink(θ), π ≤ θ ≤ 3π/2

g3(θ) = −x4 sink(θ) + x5 cosk(θ), 3π/2 ≤ θ ≤ π.

This pattern can obviously be repeated for dimensions d ≥ 5 simply by
repeating the above sequence, i.e., gm(θ) = gm+4(θ) with the appropriate
x-components substituted. In general, the g(θ) functions satisfy the fol-
lowing conditions:

1. Continuity, i.e., gm((m + 1)π/2) = gm+1((m + 1)π/2), m = 0, 1, 2, . . .

2. Smoothness, i.e., g(cid:4)

m((m + 1)π/2) = g(cid:4)

m+1((m + 1)π/2) = 0, m = 0, 1, 2, . . .

3. Existence of the second derivative, i.e., g(cid:4)(cid:4)

m(t), m = 0, 1, 2, . . .

Consider now the following norm-reducing property. Suppose ξ1 =
(x1, x2) and ξ2 = (y1, y2) are two observations. Let g1(θ) =< ξ1, n(θ) >
and g2(θ) = < ξ2, n(θ) > and use the L2 norm.

Theorem: |g1(θ) − g2(θ)| ≤ (cid:3)ξ1 −ξ2 ||2

150

7 Multivariate Continuous Data — Parallel Coordinates

Proof: |g1(θ) − g2(θ)| = | < (ξ1 −ξ2 ), n(θ) > | ≤ (cid:10)ξ1 − ξ2(cid:10)2(cid:10)n(θ)(cid:10)2 ≤

(cid:10)ξ1 − ξ2(cid:10)2.

The ﬁrst inequality follows from the Cauchy-Schwartz inequality and
the second from the fact that the norm of n(θ) is less than 1 except at
integer multiples of π/2, where it is exactly 1.

Unfortunately, the inequality does not hold in the opposite direction.
Ideally, one would like to have the Cartesian norm preserved in the par-
allel coordinate domain. However, as with the usual linear interpolations,
there is a distance shrinkage between coordinate axes. It should be noted
that it is often claimed that because the Andrews plot is a Fourier-like ex-
pansion, the Parseval relationship guarantees that L2 distances are pre-
served from d-dimensional Cartesian space to Andrews plot space. This
result is only valid when there are orthonormal basis sets. The expansion
terms for the Andrews plot are not an orthonormal basis.

7.5 Examples

7.5.1 Automobile Data

As an introductory small example, consider data on 74 1979-model-year
automobiles; these data are used to illustrate the power of parallel coor-
dinates in visualizing multivariate data and the advantages of the new
interpolations when combined with the alternative normal vectors (axis
reversing techniques). The dataset has ﬁve measured variables (price,
miles/gallon, gear ratio, weight, and cubic-inch displacement). For ﬁve-
dimensional data, there were three distinct pairwise permutations con-
sidered in Wegman (1990). They were: Perm1 ={gear ratio, displace-
ment, price, weight, mileage}; Perm2 ={displacement, weight, gear ra-
tio, mileage, price}; Perm3 ={price, gear ratio, mileage, displacement,
weight}. These three sets of permutations are shown for the test cases. In
the following examples, k = 3 has been chosen.

Figure 7.4 shows the traditional parallel coordinate plot where the
broken lines represent ﬁve-dimensional observations. There are negative
correlations between gear ratio and displacement and, similarly, between
weight and mileage. This is because it is easy to perceive the heavy cross-
ing of lines with negative slopes between the corresponding pairs of axes.
In Figure 7.5, an alternative normal vector, n2(t), has been used, which
rescales the data from −1 to +1. Now there is evidence of a linear rela-
tionship between price and weight. Using a smooth plot (Figure 7.6) may
be more comfortable to the eye and it is easier to follow the curves than
the broken lines.

Moreover, the curves cross the axes orthogonally, which gives a clear
view of the quantization of the data points. Hence, more information may
be obtained from the graphic.

7.5 Examples

151

Mileage

Weight

Price

Displace

Gear.Ratio

Fig. 7.4. Parallel coordinate in 5-D: Visualizing automobile data using n1(t).

Mileage

Weight

Price

Displace

Gear.Ratio

Fig. 7.5. Parallel coordinate in 5-D using n2(t) to ﬂip the price variable.

152

7 Multivariate Continuous Data — Parallel Coordinates

Mileage

Weight

Price

Displace

Gear.Ratio

Fig. 7.6. Smooth parallel coordinate in 5-D showing axes quantization.

Other permutations and alternative normal vectors may be considered
to explore further facets of the data. Limited space precludes an extensive
exploration. This dataset was already studied in Wegman (1990), and the
conclusions are in agreement with what was found then. For example, a
heavy car tended to have a large engine providing considerable torque,
thus requiring a lower gear ratio. Conversely, a light car tended to have a
small engine providing small amounts of torque, thus requiring a higher
gear ratio. We believe that smooth parallel coordinates allows us to detect
these relationships more easily than the traditional parallel coordinate
plot by looking at the axes and between them. It is desirable to have a
clear view of the crossings at the axes to reveal quantization and the
separation between classes.

7.5.2 Hyperspectral Data: Dealing with Massive Datasets

One of the emerging issues in visual Data Mining is the problem of deal-
ing with massive datasets. The data discussed in this section were devel-
oped from hyperspectral imagery taken over the Naval Surface Warfare
Center in Dahlgren, Virginia.

The hyperspectral imagery is based on 256 by 256 spatial imagery in
126 spectral bands yielding 8,257,536 pixel values. Not all pixels were
useful, so the dataset here uses only 41,748 pixels in each band instead
of the 65,536 possible pixels. The exercise for which these data were col-

7.5 Examples

153

Fig. 7.7. Standard parallel coordinate plot of the ﬁrst 20 principal components of
the hyperspectral imagery.

Fig. 7.8. Smooth parallel coordinate plot of 20 principal components of the hyper-
spectral imagery.

154

7 Multivariate Continuous Data — Parallel Coordinates

lected was to develop classiﬁcation algorithms for seven categories of sur-
face objects. These were runway, water, swamp, grass, scrub, pine, and
oak. A complete discussion of the analysis process is contained in Weg-
man and Solka (2005). Dimension reduction was used, taking the ﬁrst
20 principal components, labeled in the plots as PCA1 through PCA20.
The 20 principal components coupled with the 41,748 pixels yield 834,960
numbers, almost enough to legitimately discuss seeing a million. In fact,
parallel coordinate displays in CrystalVision, a commercial version of Ex-
ploreN, have easily handled 250,000 observations in eight dimensions.

Figure 7.7 represents a standard parallel coordinate plot with linear
interpolation between the parallel coordinate axes. Figure 7.8 is based
on the same data, but with smooth interpolation between the axes. Both
images use desaturated brushing to ameliorate overplotting. It is clear
that the feature of the smooth plots that has the interpolants orthogonal
to the axes makes low–density regions along the axes substantially more
apparent, for example, in the PCA2 through PCA6 axes and again in the
PCA12 through PCA16 axes. An interesting added bonus that was not an-
ticipated is that the refreshing time (i.e., the time to redraw the graphic)
is four times as fast with the smooth interpolants.

7.6 Detecting Second–Order Structures

In this section, a method is demonstrated that can be effective in de-
tecting more than linear (ﬁrst–order) structure. The main equation for
the method in two dimensions is g(θ) =< ξi, n(θ ) >. Another power
with the same normal vector can be used to ﬁnd higher-order crossings
in the parallel coordinates. For example, the second order calculation is
g(θ) =< ξ2
i , n(θ ) >. Smoothed plots will even detect data on a circle
centered at the origin.

The parallel coordinate plot of a sphere is shown in Figure 7.9 (top
left). Its “power of two” visualization is shown in Figure 7.9 (top right).
Here, the lines are crossed, which shows that these data come from
quadratic structure, and the point of crossing represents the center of
the sphere. In Figure 7.9 (bottom left), the polar parallel coordinate plot
of the same data is shown and in Figure 7.9 (bottom right), the “power of
two” version of the smooth polar parallel coordinate plot. One can easily
see that the quantization on these plots reveals more information about
the data. Higher-order structures can be obtained by having the power
changed appropriate to the cases of interest. Moreover, one can always
center by subtracting the mean from each observation, or in general use
the z-scores to normalize the data locally or globally as a step in data
preparation for the visualization process.

(cid:239)1.5

(cid:239)1

(cid:239)0.5

0

0.5

1

1.5

2

7.7 Summary

155

0.5

1

1.5

2

2.5

3

3.5

4

2

1.8

1.6

1.4

1.2

1

0.8

0.6

0.4

0.2

0

0

2

1.8

1.6

1.4

1.2

1

0.8

0.6

0.4

0.2

(cid:239)1.5

(cid:239)1

(cid:239)0.5

0

0.5

1

1.5

0

0

2

0.5

1

1.5

2

2.5

3

3.5

4

2

1.8

1.6

1.4

1.2

1

0.8

0.6

0.4

0.2

0
(cid:239)2

2

1.8

1.6

1.4

1.2

1

0.8

0.6

0.4

0.2

0
(cid:239)2

Fig. 7.9. Standard parallel coordinate plot for a sphere (top left); second-order par-
allel coordinates for a sphere (top right); smooth parallel coordinates for a sphere
(lower left); second-order smooth parallel coordinates for a sphere (lower right).

7.7 Summary

This chapter has introduced a smooth modiﬁed version of the parallel co-
ordinate plot. The modiﬁcations are based on a parameter transformation
process and its geometric structure. The mathematics behind the new
plot has been explained with views that show how patterns may be de-
tected in a dataset. The smooth curves have several signiﬁcant features,
including a norm-reducing property and orthogonal crossings of the axes.
Although not explicitly mentioned, the analysis of the datasets in the
two examples needed a lot of interactions with the software. Actions like
reordering and rescaling of axes (cf. Section 4.4.3) or the application of
density estimation procedures are necessary steps towards a meaningful
and presentable visualization.

8

Networks

Graham Wills

And the marsh is meshed with a million veins.

Sydney Lanier, The Marshes of Glynn

8.1 Introduction

Many datasets have special structures that can be represented by graphs
of nodes and links, for instance telephone trafﬁc data, trade data, or gene
ontology data.

In the mid–1990s, graphs with 100 nodes were considered “large” and
ones with 10, 000 nodes were considered huge. Little attention had been
paid to such-sized graphs, and ones with two more orders of magnitude
had not been considered. Thus, most of the existing graph-layout litera-
ture concentrates on high-quality layouts of small graphs in various ways
and ignores large graphs. The difference between displaying networks
with 100 nodes and displaying one with 1, 000, 000 nodes is not merely
quantitative, it is qualitative. Layout algorithms suitable for the former
are too slow for the latter, requiring new algorithms or modiﬁed (often
relaxed) versions of existing algorithms to be invented. Iterative layout
methods often have stopping conditions deﬁned in terms of a “goodness”
measure on the graph, which for very large graphs might lead to expected
run times of millennia. Instead an approach which allocates a certain
amount of time for a layout algorithm to run is more appropriate.

Even given a good layout, very large graphs require more attention
simply to present them on a screen. The density of nodes and edges dis-
played per inch of screen real estate requires special visual techniques
to ﬁlter the graphs and focus attention. It is not possible to display an
entire unaggregated million-node graph and hope to see useful informa-
tion. Compounding the problem is that large real-life networks are often
weighted graphs and usually have additional data associated with the
nodes and edges. A system for investigating and exploring such large,
complex data sets needs to be able to display both graph structure and

158

8 Networks

node and edge attributes so that patterns and information hidden in the
data can be seen.

This chapter presents a set of techniques for dealing with very large
graphs. The emphasis will be on exploration and discovery, not on pre-
sentation quality layouts. It will highlight techniques that allow people
to interact with very large graphs to
• understand overall structure;
•
reveal unusual features;
•
compare subgraphs by both structure and node/edge attributes;
•
“drill down” from a high level overview to sections of interest.

This chapter will also describe a tool that addresses some of these
needs, the NicheWorks tool, which was created by the author while at
Bell Laboratories. The images presented in this paper were re-created for
this book using the SPSS Visualization system, which incorporates sim-
ilar graph layout algorithms to those used in NicheWorks. This chapter
will further present an overview of recent research on laying out very
large graphs and talk about languages for describing graphs and layout
algorithms.

8.2 Layout Algorithms

Many papers have been written on ways to lay out graphs. Although not
including the most recent work, Di Battista et al. (1994) is still an ex-
cellent introductory reference to this literature. The proceedings of the
yearly Graph Drawing conferences (e.g., Pach; 2004) are an excellent re-
source for cutting-edge research and modern methods. The traditional
graph-drawing literature concentrates on laying out graphs in two di-
mensions, but there is also a developing body of work on laying out graphs
in three dimensions, which has been created more from the discipline of
computer graphics than of mathematics. The results have been rather
mixed. The most successful method for visualizing graphs in 3-D, cone
trees (Robertson et al.; 1991), depends on a strict hierarchical structure
— trees. They are essentially a 3-D generalization of the basic radial lay-
out given below in Section 8.2.1, with clever interaction features for man-
aging larger trees. These trees seem to work well for tens of thousands of
nodes, and use of a ﬁltering and pruning interaction mechanism would al-
low their use for million-node graphs. In contrast, less structured graphs
have yet to be displayed successfully in 3-D. It appears that the difﬁcul-
ties of navigation and scene clutter overwhelm 3-D’s inherent ability to
reduce overlap.

The rest of this section describes three algorithms that can be used to
lay out very large graphs, either directly or by applying some modiﬁca-
tions. This is not by any means intended to be an overview of the ﬁeld;

8.2 Layout Algorithms

159

it is instead meant to highlight popular approaches and give an idea of
the challenges. Among others, Coleman (1996) gives a list of properties
towards which good graph layout algorithms should strive. The list in-
cludes notions of clarity, generality and the ability to produce satisfying
layouts for a fairly general class of graphs. Speed is also a criterion. How-
ever, much of the research into “good layouts” assumes graphs with no
data or weights on the nodes or edges. This is unfortunate as, for exam-
ple, it might matter a lot less if a low-weight node has been occluded than
if a high-weight one has. Despite this serious weakness from a statistical
viewpoint, the basic layout principles can still be used as guides.

8.2.1 Simple Tree Layout

Di Battista et al. (1994) give several examples of radial layout algo-
rithms of which this one is an example. The tree layout algorithm is de-
signed to work for trees, but also works well for directed acyclic graphs
and has proved to be useful for both general directed and undirected
graphs. In essence, to use it for a general layout, the “best” tree embedded
within the graph is found and that is used for the algorithm. A simple,
but effective solution is to use standard algorithms to ﬁnd a spanning
tree within a general graph. For weighted graphs, inverting the weights
and ﬁnding the minimal spanning tree gives an embedded tree that in-
cludes each node’s most-heavily weighted edge. Other possibilities, such
as creating a complete graph by summing path distances between nodes
and using those, are computationally infeasible for very large graphs.
The root node of the tree is po-
sitioned at the center and given
an angle of 360 degrees. This indi-
cates the angular span of its sub-
tree. The following recursive lay-
out method is then carried out: For
each of the leaf nodes of the po-
sitioned graph, the angular span
available to its sub-tree is divided
up using the size of each of its chil-
dren’s sub-trees as weights. Thus,
if there was a node with angle 20’
and three children with sub-tree
sizes 3, 2, and 5, the respective
angles allotted to them would be
6, 4, and 10 degrees, respectively.
The children are placed on a circle
with radius proportional to their
distance from the root node and
are placed at the midpoint of their

Fig. 8.1. Radial placement.

160

8 Networks

individual angular ranges, with their parent in the center of the overall
range (complying with a common criterion for hierarchical layouts men-
tioned in, for example, Coleman (1996)). An example is shown in Fig-
ure 8.1. The root node (R) is drawn at the center, with its children on a cir-
cle centered at R of radius l. R has a sub-tree of size 20 and its child S has
a sub-tree of size 10, so S acquires an angular span of 360 × 10/20 = 180◦.
Its child T with sub-tree of size 5 gets a span of 180 × 5/10 = 90◦, U gets
180 × 2/10 = 36◦, and V gets 180 × 3/10 = 54◦.

This process continues until all the nodes have been positioned. The
order of placing sub-nodes around the circle is the ﬁnal element requir-
ing deﬁnition. The approach used here is to place the strongest weighted
edges from a node to a child node in the center of the span, with the
weaker ones to the edges. Thus, the child with the strongest edge to its
parent will be in the center of the range. This works in line with a general
principle that the shortest edges should indicate the strongest weights —
in other words, nodes that are linked by a highly weighted edge should
be closer to each other than ones linked by a lesser weighted edge.

In practice, a slight modiﬁcation to this algorithm, which does not use
all the available angle to place children, improves the layout. The slight
loss in available space is more than offset by the improvement in visible
separation between subtrees. Figure 8.2 shows a very small tree layout
under this system.

Fig. 8.2. A small radial tree layout with additional separation between sub-trees.

8.2 Layout Algorithms

161

8.2.2 Force Layout Methods

Force Layout Methods form a large and general class of layout algorithms.
They are intuitive and a na¨ıve version of the algorithm is simple to pro-
gram. Although the details vary widely, the basic approach is to form a
measure of attraction or repulsion between all pairs of nodes in a graph,
based on the graph edges, and then solve the resulting physical model, ei-
ther by solving a (typically) matrix equation, or by starting with an initial
conﬁguration and simulating the physical process. By choosing the way
to express edge weights as forces, two important sub-methods emerge:
• The Spring Model

This model uses the edge weights to deﬁne a virtual spring connect-
ing the nodes. These springs have a force acting on them that obeys
Hooke’s law for springs, so each “spring” will have a desired length
and will exert a force between its terminating nodes to bring them to
that distance apart. This model is solved by simulation.

• Multi-dimensional Scaling

In this case, the forces are described so that the statistical multi-
dimensional scaling (MDS) algorithm applies. Essentially this re-
quires a symmetric matrix to be created describing the preferred dis-
tance between each pair of nodes and node locations are found to min-
imize the squared error between the resulting distances and the pre-
ferred distances.

Classical MDS is a non-starter for large graphs, because it requires
matrix solutions with matrices of size N2, where N is the number of nodes
in the graph. Solving these matrices when N = 1, 000, 000 is infeasible.
Techniques have been proposed for generalizing MDS and not requiring a
matrix solution, but using iterative solutions; these essentially boil down
to solving a general force based model, as discussed at the start of this
section.

One other disadvantage of these models is that to get good results, it is
often necessary to include a force by which nodes repel all other nodes to
which they are not linked by an edge. Rather than add all the extra forces
in directly, which would make the number of forces N 2, only those nodes
sufﬁciently close to each target node need be considered. This reduces
the number of forces to be considered to N log(N ) for a wide number of
common ways for dividing up a space into local sections. For example,
Nievergelt and Hirichs (1993, Section 23.3) use a quad-tree algorithm
that is O(log N ) for all three operations of adding, deleting and calculating
close neighbors, leading to the overall N log(N ) performance.

162

8 Networks

8.2.3 Individual Node Movement Algorithms

This algorithm is designed to improve a random layout rapidly; it is espe-
cially useful for random-grid layouts. Again, forces are deﬁned between
all pairs of nodes and the sum of all these forces for a given conﬁgura-
tion is termed the potential. These algorithms pick a node and then see if
moving just that node will decrease the overall potential. If it does so, the
node is moved. A variation, based on simulated annealing, allows small
potential-increasing movements so as to break out of local minima. Over
time, the maximum allowed size of these small potential increases is de-
creased, simulating a lowering of temperature in a physical system as the
conﬁguration “freezes” into position.

One version of this algorithm randomly picks a pair of nodes and cal-
culates the difference in potential if the nodes were swapped. If the swap
decreases the potential, then the nodes’ positions are swapped. This has
been used in NicheWorks. A similar algorithm can be found in Davidson
and Harel (1996). They use an annealing approach to decide whether to
move a node to a new randomly chosen position near the starting one.

One problem with this method is in adapting the recommended num-
ber of iterations and the cooling schedule. Davidson and Harel (1996)
suggest 30N iterations, which is impractical when N = 1, 000, 000.

Calculating the effect on the potential of a swap is linearly dependent
on the number of edges involving either node. Sparse graphs are more
common for large networks than near-complete graphs, with the average
degree of the nodes remaining nearly constant as more nodes are added
to the network (this reﬂects the author’s experience with a range of dif-
ferent data sets: mainly telephony, software call graphs and modiﬁcation
histories, and text document associations via n-gram analysis). Thus the
potential calculation is typically very fast and can be performed many
times. Because nodes can be moved very long distances with one swap,
this method is a powerful way of improving random layouts rapidly. How-
ever, a bad initial placement can lead to very poor long-term performance
and becoming trapped in local minima is still an issue, even with anneal-
ing.

8.3 Interactivity

Ben Shneiderman’s information seeking mantra (Shneiderman; 1996) of
“overview, ﬁlter and zoom, details on demand” is highly applicable to the
exploration of very large graphs. It is simply not possible with current
technology to look at a million nodes with all their links on a display
and see anything useful. In my research, I have used a graph visualiza-
tion system within a linked views environment. Such an environment is

8.3 Interactivity

163

described in detail in Wills (1997) and Eick and Wills (1993) and im-
plemented at least partially in systems such as Velleman (1997), Wills,
Unwin, Haslett and Craig (1990), Swayne, Cook and Buja (1991), Tier-
ney (1991), and Unwin, Hawkins, Hofmann and Siegl (1996). Under this
paradigm, each view of the data is required to represent both the data
themselves and a state vector that is attached to the data. This state rep-
resents the “interest” in each data item and forms a way both to focus
attention and show/hide sections of views. In the NicheWorks and EDV
implementations Wills (1997) the possible states are
• Deleted

Treat the data point as if it were not present.

• Normal

Show the data.

• Highlighted

Show the data so it will stand out against normal data.

• Focused

Show as much detail as possible of the data.

Furthermore, the user should be allowed to modify the state vector by in-
teracting with the data views. For example, selecting a speciﬁc bar from
a bar chart view and highlighting it will change the data state vector for
items represented by that bar, causing other views of the data immedi-
ately to update their representation. This paradigm allows the user to
interact with a graph view of the data in conjunction with views of any
node or edge attributes. The following operations are then made avail-
able:

1. Tools to colour and represent nodes and edges based on their at-

tributes.

2. Selective labeling of nodes under user control; also painting of nodes

with labels.

3. Mapping of attributes to shapes and labels.
4. Interactive data querying via the mouse.
5. Ability to show or hide parts of a graph via manipulation of views of

node/edge attributes.

These capabilities are shared by all tools in a linked views environment.
There are also methods speciﬁc to graph analysis that are incorporated
into the NicheWorks view. These include:

6. Selection propagation from nodes to edges and vice versa.
7. Selection propagation within a graph by following edges (one step or

connected component).

8. Interactive Pan/Zoom and Rotate facility.

164

8 Networks

Operations (1) through (3) enhance the basic views with additional
information. For example, the shape of a node may encode one attribute
while colour encodes another, allowing a multivariate decoration of the
basic graph structure. For a weighted graph, it is almost mandatory to
represent the weights for the drawn edges in some visual way. Colour or
line thickness can be used, but with modern drawing environments more
subtle effects, such as transparency (with anti-aliasing) provide an effec-
tive alternative. (4) provides details on demand, and is especially useful
for displaying text information which cannot be easily encoded, such as a
person’s name or a web URL.

(5) Allows logical zooming to be performed. It is probably the most
important general technique. It allows the user to display, for example,
just the relationships between webpages that contain text rather than
images; to hide all the low-importance nodes; to see only those edges that
exceed a certain threshold; or to display selected categories of nodes. If
attributes are available for both nodes and edges, the graph can be used
to provide a way of propagating selections from node attributes to edge
attributes and vice versa, as indicated by (6) and (7). In analysing web
trafﬁc, ﬁrst select all nodes that represent a “decision to purchase” page,
propagate that selection to the edges that are directed into that node and
also to the nodes at the originating end of those edges. Then focus atten-
tion on those webpages that lead to purchase decisions and the links that
were used to get to that decision.

Even when no extrinsic attributes have been speciﬁed for nodes and
edges, many graph-theoretic attributes can be calculated based purely
on the layout. The number of edges originating at a node, O, provides
one, as does the number of edges, T , terminating at a node. The expres-
sion (O − T )/(O + T ) gives a measure of whether the node is a source
or a sink, on a scale of (−1, 1). For edges, attributes can be calculated
such as whether an edge separates any nodes in a graph or the number
of minimal paths between nodes that use that edge. These measures of
importance for both nodes and links can then be used for highlighting,
encoding or for reducing the number of nodes to display. For example,
hiding all nodes with only one link at least halves the size of a tree.

8.3.1 Speed Considerations

For large graphs, it is very important that the zoom/pan and rotate inter-
actions are sufﬁciently fast and also that visual feedback is provided as
they are being drawn. Because drawing 1, 000, 000 nodes is never going to
be a rapid task, how can these two criteria be reconciled?

Research into human-computer systems has shown that if an opera-
tion is performed sufﬁciently fast (under 200 ms for the average person),
then it is perceived as being instantaneously connected to the initiating
actions. This has important implications for graph drawing programs.

8.3 Interactivity

165

The results of any mouse action, such as zooming in or out, panning
around or rotating the graph, should be continuously re-displayed within
this time limit. Failure to achieve this means that the user will have dif-
ﬁculty manipulating the view. Of course, redrawing a million nodes and
edges of varying shapes and colours within 200 ms is impossible on most
machines, and by the time it is possible, the target will be to visualize a
billion nodes and edges. Some partial-drawing solution is needed.

A na¨ıve approach would be to start drawing the graph at time t0 and
continuously check the time until time t0 + 200 ms is reached and then
stop drawing. Unfortunately, this has a severe failing; for a very large,
dense graph, which has a lot of overplotting, the partially drawn graph
is guaranteed to look very different from a completed drawing. This is
because the partial drawing shows only those nodes and edges that lie
below the ones that are usually drawn later and so appear on top.

In NicheWorks, a statistical technique was employed to solve that
problem. You want to be able to predict the number of nodes that can
be drawn in 200 ms. Then start drawing that far from the end of the list
of items to draw and you guarantee both to ﬁnish on time and to have
drawn all the nodes that normally appear on top in the full rendering. Of
course, the amount of drawing that a computer can do in a ﬁxed amount
of time varies quite wildly on a multi-tasking system, so a robust statisti-
cal prediction needs to be made based on the current history of drawing.
Essentially, at any point there is a history of number of nodes drawn (Nt)
and the time to draw those nodes (Tt). There will be a functional rela-
tionship between them, and knowledge of the drawing algorithm leads to
trying a function approximately linear in the relationship between Tt and
Nt.

The details of the prediction algorithm are quite complex, as it needs
to be robust, especially to the sudden spikes associated with processor
sharing, and yet smooth, as nodes and edges should not ﬂicker during
zooming and panning. It must also be adaptive, because zooming and pan-
ning mean that different numbers of nodes and edges have to be drawn
and the system takes longer to draw graphic objects of differing sizes. Af-
ter a large amount of experimentation, the technique that worked best
was to use weighted regression where weights decreased exponentially
for records occurring further in the past. Three such regressions were
calculated, each leaving out one record of the last three and the median
value used. Empirical results on UNIX X-Windows systems and Win-
dows/DOS boxes indicate that the prediction method works well, rarely
overshooting more than 50% of the time and without too much ﬂicker.

8.3.2 Interaction and Layout

The state vector can be useful when laying out large graphs. If a node’s
state is set to deleted, then it plays no part of the layout process, nor do

166

8 Networks

any edges involving it. Thus, the deletion mechanism can be used to look
carefully at subsets, trying layouts only for them, or using partial layouts
to speed up positioning a very large graph.

Another use of the state vector is to allow the user to ﬁx the selected
nodes. These nodes are not permitted to be moved by any of the sub-
sequent layout algorithms. This allows the user to layout one subset of
nodes, then ﬁx their positions and use, for example, the descent method
to move the other nodes into the best positions relative to the ﬁxed nodes.
A ﬁnal consequence seems trivial, but is very useful in practice. By
showing only the most important nodes and/or strongest edges, the user
can watch the layout algorithm perform without taking too much time
away from the algorithm to display the data. This helps the user under-
stand the algorithm’s operation more clearly and thus aids the layout
process.

8.4 NicheWorks

NicheWorks is a visualization tool written at Bell Laboratories to inves-
tigate very large graphs. Typical analyses performed using NicheWorks
have between 20, 000 and 1, 000, 000 nodes. On current mid-range worksta-
tions, a network of around 50, 000 nodes and edges can be visualized and
manipulated in real time with ease. Increased size decreases interactive
performance linearly. NicheWorks allows the user to examine a variety of
node and edge attributes in conjunction with their connectivity informa-
tion. Categorical, textual and continuous attributes can be explored with
a variety of one-way, two-way and multi-dimensional views.

NicheWorks was originally designed to examine large telecommunica-
tions networks, and has been applied extensively to understanding call-
ing patterns among telephone customers both for customer understand-
ing and fraud detection. In this domain, information about the customer
(type of service, geographical location, etc.) and the calls they make (date,
time of day, duration) needs to be understood in the context of who calls
whom. Typical questions that NicheWorks was designed to answer deal
with clustering users based on their calling patterns and collected sta-
tistical attributes; detecting and characterizing atypical calling patterns;
understanding how an interesting subset’s calling patterns differ from
those of the whole; and identifying individuals who have been classiﬁed
into a given category by a purely data-driven algorithm, but who do not
appear to ﬁt that category based on their calling patterns. NicheWorks
has been described in detail in Wills (1997).

8.5 Example: International Calling Fraud

8.5 Example: International Calling Fraud

167

Discovering fraudulent calls made to overseas locations is very important
for telephone companies. Not only do they lose revenue if they cannot col-
lect money for a call, but they also have to pay overseas telephone com-
panies to use their equipment, resulting in an actual loss of money. But
telephone fraud is very resilient to automatic or Data Mining techniques
for detection. Fraudsters adapt very rapidly to new algorithms and share
their knowledge on preventive systems. For this reason, a visual approach
to fraud detection is very effective; it exploits users’ ability to interpret
and understand new patterns in calls, allowing them to process more data
and identify new fraudulent methods. The data set in this section origi-
nally consisted of more than 20 million international telephone calls over
a weekend in 1994. This has been segmented by geographical origin, and
here a moderate 80, 000 calls are investigated, involving slightly less than
35, 000 callers. Figure 8.3 shows the results of the default NicheWorks al-

Fig. 8.3. Overview of calling patterns.

168

8 Networks

gorithm. This algorithm places nodes randomly on a hex grid and then
swaps them around using simulated annealing until few further changes
are made. Then the algorithm performs steepest descent minimizing the
“badness” of the layout (its potential) as a function of the node positions.
A ﬁnal step moves all nodes slightly apart from their neighbors where
that is possible. The potential function used and details of the algorithm
are described in Wills (1997).

The most noticeable feature of Figure 8.3 is the number of callers clus-
tered around each country; these are people who called exactly one coun-
try, with the distance to the country indicating for how long they were on
the phone to it. In Figure 8.4, the links corresponding to long call times
have been selected and that selection propagated to the nodes at the ends
of those links. The rest of the graph has been hidden and the resulting

Fig. 8.4. High users’ calling patterns.

8.5 Example: International Calling Fraud

169

graph laid out using the radial tree layout on the maximal embedded
tree as described in Section 8.2. Hiding of links has caused the graph
to resolve into six components; these are laid out individually, and the
resulting layouts composed together.
The analyst noted an interesting couple of callers who called both Israel
and Jordan a lot. By using the mouse to focus on the callers, and view-
ing the results in a linked view, it appeared that each of the callers made
more than 120 calls to Israel and more than 80 to Jordan. A ﬁsheye trans-
form was applied (a distortion view that magniﬁes around the area of
interest and shrinks elsewhere), producing Figure 8.5. The two nodes of
interest are shown in the diagram linked with large yellow links to Israel,
and with medium-strength cyan links to Jordan. When mousing over the
nodes for information, it was apparent that not only were their calling

Fig. 8.5. Possible fraud pattern involving Israel and Jordan.

170

8 Networks

patterns very similar, but they also had very similar numbers (which have
been scrambled here). It is almost certain that these callers are part of the
same operation. At the time of the study, it was impossible to call directly
between Israel and Jordan. Some companies would set up a phone ac-
count in a rented apartment in the US and charge Israeli and Jordanian
business people for third-partying the call through to the other country.
When their bills came in at the US end, they would simply ignore them
and leave to set up a new location. The distribution of durations of calls
made by these numbers is consistent with the investigator’s expectations
for this type of fraud.

Looking at these callers in detail, the analyst noticed that they also
called the United Arab Emirates (UAE) occasionally. Following this line
of inquiry, the analyst showed all calls and callers involving any of these
three countries and produced Figure 8.6.

Fig. 8.6. The Israel–Jordan–UAE generated subset: overview.

8.5 Example: International Calling Fraud

171

By labeling interesting numbers, the analyst identiﬁed one number
that called Israel for a long time and, importantly, a group of other tele-
phone numbers having similar patterns of calling to the original pair and
having numbers similar to each other (the numbers beginning with 702-
324). This set of numbers had much lower call volume, partly because
there were more phone numbers involved, and so were less easy to de-
tect. Because standard methods would not have noticed that the numbers
were similar, they would not have been able to identify this type of fraud.
Using the NicheWorks tool, the analyst was able to explore a medium–
sized network of more than 40, 000 calls, using different criteria to selec-
tively show different aspects of the data and using different positioning
to highlight information.

Fig. 8.7. The Israel–Jordan–UAE generated subset: zooming in to those callers
calling more than one country.

172

8 Networks

8.6 Languages for Description and Layouts

One of the challenges in working with graphs is diversity. There are many
algorithms that can be used to lay out graphs, and these algorithms can
be combined. Given a layout and data, graphs can be displayed in many
different ways. Even the deﬁnition of a graph — nodes, edges, attributes
— can be annotated with other information on a priori hierarchies and
graph attributes that complicate the basic simple structure. In this sec-
tion some recent approaches to coping with this diversity by using de-
scriptive languages are discussed.

8.6.1 Deﬁning a Graph

At its most basic, a graph consists of a list of edges, where each edge has
a “from” identiﬁer and a “to” identiﬁer. The set of all such identiﬁers is
assumed to make up the nodes of the graph. Whereas this can be suf-
ﬁcient for some mathematical applications, real-life applications require
more work.

One recent approach is GraphXML (Herman and Marshal; 2000), a
graph description language in XML that can be used as an interchange
format for graph drawing and visualization packages. The generality and
features of XML make it possible to deﬁne an interchange format that not
only supports the pure, mathematical description of a graph, but also the
needs of information visualization applications that use graph-based data
structures. GraphXML allows hierarchies and dynamic graph features
to be described, as well as allowing for some number of display options.
Care has also been taken to allow it to be extensible. From the viewpoint
of large graphs, however, it has the disadvantage of requiring that the
graph data be embedded in the XML, which for 1, 000, 000 node graphs
means a lot of unnecessary text parsing and translation. A mechanism
that allows the structure to be deﬁned with a reference to the data (such
as used in VizML, Section 8.6.2), rather than conﬂating the two would
mitigate this problem and would not be hard to integrate into the overall
design.

Other XMLs for graph description include XGMML, GXL, and GML.
They share some of the same features as GraphXML but miss some of
GraphXML’s innovations. They all share the same drawback for large
graphs of requiring the data to be embedded in the graph description.
As a side note, they also require style information to be embedded as part
of the core structure deﬁnition, which makes it hard to globally change
styles or modify sets of items. For large datasets, a general principle that
should be considered is to separate the data elements, the structure ele-
ments and the style elements as much as possible so that changes to one
do not require computation over all of them. Changing the font for node
titles in a 1,000,000 node graph should not require a change in the XML

8.6 Languages for Description and Layouts

173

for each of those nodes. Similarly, an update to a database entry should
not require regeneration of a multi-megabyte XML document.

8.6.2 Graph Speciﬁcation via VizML

The speciﬁcation of graphs is part of a larger problem, the speciﬁcation
of visualizations in general. Many attempts have been made to create
taxonomies of visualizations, but these have tended to be at the rather
superﬁcial level of categorizing by dimension and by the appearance of
the main symbols (bars, lines, points, etc.). SPSS has been developing
an XML variant for general visualization deﬁnition. The purpose is to
provide a way of deﬁning the essence of a visualization, not ways to create
“barcharts”, “scatterplots”, or other predeﬁned, canned views. As one of
the goals is to be able to reproduce all common visualizations, this XML
can be used to specify graphs.

VizML provides a means of deﬁning a visualization (a.k.a. graph, plot,
view, or chart) by specifying the components that make up a chart, such
as frames, points, axes, and the like. At the lowest level a chart can be
thought of as a collection of lines, symbols, and text and graphical at-
tributes for these objects. This level is lower than VizML. At the highest
level is a speciﬁcation of a chart by type. This speciﬁcation is very good for
initial chart creation (I want a scatterplot of height vs. weight) but is very
limiting in that every desirable chart must be pre-conceived and planned
for, and all options for that chart must also be thought of in advance. If no
one ever thought of adding a smooth line to a histogram, it simply cannot
be done.

VizML lives between these two extremes. It deﬁnes high-level items,
but not complete charts. These items correspond to the “statistical ob-
jects” as described in Chapter 4. It also allows these items to be composed
in any way that makes any sort of sense. As an example, any chart may be
rendered in polar coordinates, which allows a histogram to become a vari-
ant of a Rose diagram (as invented by the famous nurse and early applied
statistician, Florence Nightingale). If applied to a scatterplot with a loess
smoother, it transforms it into a polar scatterplot with a circular smooth.
This is one of the core ideas behind VizML providing a set of orthogonal
graph concepts (elements, coordinates, aesthetics, transforms, statistics,
interactions, styles) that can be composed as ﬂexibly as possible to pro-
vide an extremely wide variety of charts. Node and edge displays ﬁt into
this framework as two elements (points and links) with a graph layout
statistic on them to lay out the graph. VizML is based on Lee Wilkinson’s
The Grammar of Graphics (Wilkinson; 2005), which provides more de-
tails on VizML. In this chapter, the colour ﬁgures were all produced by
VizML. For example, here is an XML fragment from the speciﬁcation used
to produce Figure 8.5:

174

8 Networks

<graph>

<c o o r d i n a t e s>

<dimension lowerMargin= ”5%” upperMargin= ”5%” />
<dimension lowerMargin= ”5%” upperMargin= ”5%” />
<fishEye m a g n i f i c a t i o n = ” 5 ” x= ” 0.666 ” y= ” 0.63 ” />

< / c o o r d i n a t e s>
<l i n k>

<g r a p h L a y o u t S t a t i s t i c from= ” from ”

t o= ” t o ” weight= ” weight ”>

< i n i t i a l

type= ” polarTree ” />

< / g r a p h L a y o u t S t a t i s t i c>
<c o l o r high= ” yellow ” low= ” blue ” v a r i a b l e = ” weight ” />
<s i z e high= ” 3px ” low= ” 0 . 5 px ” v a r i a b l e = ” weight ” />

< / l i n k>
. . .

< / graph>

It contains a simple 2-D coordinate transformation, with a ﬁsheye
transformation chained after it magnifying at a location speciﬁed interac-
tively by the user. A link element is deﬁned with a single layout method —
just do an initial polar tree layout, then stop. The links are coloured and
sized by the link’s weight, which is derived from the total call time. Other
details of the XML have been omitted for clarity. To produce Figure 8.6,
essentially the same speciﬁcation was made, except that the graphLay-
outStatistic has been changed to the following:

<g r a p h L a y o u t S t a t i s t i c from= ” from ”
type= ” g r i d ” />

< i n i t i a l
<swap ignoreLinkCrossings= ” true ” maxTime= ” 60 ” />
<move ignoreLinkCrossings= ” true ” maxTime= ” 90 ” />

t o= ” t o ” weight= ” weight ”>

< / g r a p h L a y o u t S t a t i s t i c>

For this layout, you start with a grid, then swap nodes for up to one
minute, then move nodes to better locations for up to a minute and a half.
For both these update algorithms, links that cross are not considered in
the calculations of better (i.e., when the potential of a layout is calculated,
link crossings do not increase that potential).

8.7 Summary

Million-node graphs arise far more often than might be expected. Any
large group of individuals or items that interact or communicate in any
way will generate networks, and so there are many examples that are im-
portant to study. For this, exploratory and presentation tools are needed.
The ﬁrst issue that must be dealt with is the speciﬁcation of the graph.
What are the nodes? The links? What data are attached to each? How

8.7 Summary

175

should it be drawn? What attributes dictate the shape of the nodes, their
colour, their labels, and so on? Are all the links equal, or are some to
be shown stronger, thicker or coloured/dashed in some way? Most exist-
ing graph speciﬁcation languages, by tying together edge variables, posi-
tions, appearance, style and meta-information, make it very cumbersome
to represent million point nodes. Instead of one conﬂated speciﬁcation,
this paper suggests that a speciﬁcation language such as VizML, which
separates out the data and styles from structure and information, is su-
perior. It allows the node and link tables to exist in a database or in any
other external location, and so allows easy manipulation of the structure.
With the speciﬁcation deﬁned, layout algorithms must be used to dis-
play the graph. Most literature in the ﬁeld is concerned with graphs of
up to a few hundreds of nodes and only a few commercial packages can
handle low thousands of nodes. A different class of algorithm is needed
which does not aim for perfection, but for producing an informative dis-
play within the limited amount of time available. The bound is time, not
quality.

With a million nodes, both an overview and the ability to focus and
ﬁlter on details are necessary. Linking nodes and links to statistical plots
of their attributes allows graph structure and data structure to be co-
explored, seeing one in the light of the other. Additional selection oper-
ations that allow the user to expand selections by selecting nodes and
edges connected to ones discovered to be interesting allows questions like
“who are all the people who phone people with characteristic X?” to be
answered. Once an interesting subgraph is found, allowing layout algo-
rithms to be run interactively on just that subgraph completes the circle
by allowing high-quality layouts to be performed on small graphs, so you
can take advantage of the large body of existing work on layouts for small
graphs, while living in a world of million-node graphs.

9

Trees

Simon Urbanek

Millionaire models are rare enough, but model millionaires are
rarer still.

Oscar Wilde, The Model Millionaire

9.1 Introduction

Trees have been used in many scientiﬁc ﬁelds for decision making, clas-
siﬁcation, or prediction for quite some time. They are usually easy to in-
terpret, even for people without statistical knowledge, because they are
so easy to visualize. This makes their application appealing for a wide
variety of tasks.

In statistics, tree models are most widely used for classiﬁcation and
regression (Breiman et al.; 1984). Besides their interpretability, they are
also very ﬂexible in application, because they are non-parametric and re-
quire no assumptions about the distributions of the covariates. All kinds
of covariates, categorical, ordinal, or continuous, can be mixed together
in the model and they handle missing values well. These properties have
made trees popular, especially for non-linear regression and classiﬁcation
problems.

Recent fast-paced developments in computational power have caused
the research in this ﬁeld to go in separate, different directions. The ﬁrst
consequence is the increase in the volume of available data. Automatic
data acquisition and the large databases that are commonly in use nowa-
days offer overwhelming amounts of data waiting to be analysed. This
leads to questions as to whether trees are suitable for handling such large
amounts of data, as to how they behave when many different covariates
are present, and as to how they scale up with increasing numbers of cases.
All these issues are naturally important for visualizing trees. If models
cannot be calculated quickly, graphical displays cannot be drawn quickly,
especially the displays that are based on results from groups of trees.

178

9 Trees

Unlike many other models, there is a variety of different algorithms
and methods for growing trees because of their complex structure. Noth-
ing like “the optimal” tree exists, and it is possible to grow trees of almost
any size. The ﬁrst section discusses how to handle large trees and how
tree size is related to the size of the dataset. The bigger the tree, the more
difﬁcult it is to visualize and interpret.

There are various ways of visualizing a tree. Visualization is impor-
tant in order to interpret models and to assess their quality. The rich
structure of a tree cannot just be expressed numerically; it gains from
graphical displays. Increasing dataset size means that standard plots
need to be re-evaluated, their limits determined and solutions for prob-
lems induced by the increase in size found. Chapter 3 illustrates these
problems and gives possible solutions. All the tree displays in this chapter
have been generated using the interactive statistical software for visual-
ization and analysis of trees, KLIMT. KLIMT provides both a broad range
of options for displaying and exploring individual trees and a variety of
innovative plots for understanding and investigating collections of tree
models.1

Current computational tools allow the generation of large numbers of
trees for a single dataset. One idea is to combine the information con-
tained in all the trees in order to improve prediction accuracy. The loss of
interpretability of the combined predictors can be partially offset by using
methods for analysis and visualization of the differences and similarities
between the models.

The methods for large datasets, large trees, and large numbers of trees
outlined in this chapter are summarized in the last section together with
their beneﬁts and their limitations.

9.2 Growing Trees for Large Datasets

There are several different methods for tree construction. The well-known
ID3/CART family of greedy algorithms is mostly used for initial growing,
and then various pruning algorithms are applied.

The Bayesian approach (Chipman et al.; 1998) offers an alternative to
CART. CART is based on local optimization, which may be inappropriate
for a given task. Bayesian trees are not bound by this restriction. Unfor-
tunately, Bayesian approaches are computationally very demanding. The
construction of a Bayesian tree model for a dataset of 600 cases takes sev-
eral minutes. This rules out its application for large datasets. In the next
section, the performance of the greedy algorithm is analysed as to how it
is affected by the number of observations and by the number of variables.

1 Tools like SpaceTree (Grosjean et al.; 2002) are useful for displaying large

hierarchical datasets but are less helpful for decision tree models.

9.2 Growing Trees for Large Datasets

179

9.2.1 Scalability of the CART Growing Algorithm

Let X1, . . . , Xp denote the predictor variables and N the number of cases.
Consider the computational steps necessary for growing a single tree.

The idea of the greedy algorithm is to consider all possible splits for
each variable, calculate the decrease of impurity for each split, and choose
the one with maximal decrease of impurity. The measure of impurity used
here is entropy, which up to a constant factor corresponds to the deviance.
Computational complexity depends on the kind of variable used in a
split. Take continuous and ordinal variables ﬁrst. These variables can be
ordered by value. Each split in a node t partitions the cases {xi1, . . . , xiN }
falling into the node into two groups according to xik ≤ st and xik > st,
where xik denotes the k-th case of the variable Xi and st the split cutpoint
for the node t.

(cid:18)N

Therefore, the na¨ıve approach would involve calculating the deviance
gain for each of up to N − 1 splits. For regression trees the deviance is
deﬁned as
. Regression trees with a constant model in ter-
minal nodes (or leaves) are characterized by ˆyk = ¯yt, where t is the termi-
nal node the case k falls into and ¯yt is the mean of response values of the
cases falling into that node. This leads to a computational cost of

2
k=1 (yk − ˆyk)

Ct = Cmean + Cdeviance ≈ O(2N )

for each participating node. This needs to be calculated only once for the
parent node, but once for each possible split into two child nodes. There-
fore, the global computational cost of ﬁnding the best split for one variable
is:

N −1(cid:4)

Cv = Cparent +

s=1

(Ctls + Ctrs) ≈ O(N 2),

which scales badly for large datasets.

Fortunately, it is possible to perform several optimizations. If the
search is done in the order of the values of the variable split, then it is
possible to update both predicted values and the deviances of the children
based on the values of the previous step. This reduces the computational
costs to O(N ).

Furthermore, if the data are organized in an intelligent way, then it
is possible to reduce the computational costs of a split on one variable
to O(Li), where Li denotes the number of discrete values taken by Xi.
Because splits are always placed between two distinct values of Xi, it
is sufﬁcient to consider splits between the values, and given the relative
counts it is possible to use an updating formula that is based on the values
Li instead of on the cases.

For classiﬁcation trees the deviance of a node t is deﬁned as

Dt = −2

(cid:4)

classes c

ntclog

ntc
nt

.

180

9 Trees

The values nt and ntc can be obtained by induction. This leads to compu-
tational costs of O(CN ), where C denotes the number of categories in the
response variable. A reduction to levels instead of cases is also possible,
but the information that needs to be cached includes the changes of ntc
for each case and is therefore more complex than in the regression case.
So far, splits on ordinal and continuous variables have been consid-
ered. It remains to check the computational costs of splits on categorical
variables. Evaluating all splits means calculating 2Ci − 2 possible alter-
natives, where Ci denotes the number of categories for the split variable
Xi, because each category can go either to the left or the right branch and
cases where one of the branches is empty are not of interest.2

Given pre-cached information on each category ci it is possible to use
induction update formulas similar to those used for ordered variables.
The generation of such a cache pool has complexity O(N ), which leads to
a global computation complexity of O(N + 2Ci).

In many applications, N is the dominating factor: complexity depends
on the number of cases linearly. Nevertheless, 2Ci can be large because it
grows exponentially with the number of categories Ci. Therefore, where
possible, categorical variables with many categories should be converted
into ordinal ones or split into separate categorical variables with fewer
categories.

So far, the split of a single node with N cases has been considered. A
tree is generated by recursive splitting of the nodes. The number of cases
across a level of the tree (i.e., nodes of the same depth) is constant until
terminal nodes are reached, then it is reduced by the number of cases in
the terminal nodes. This implies that for a full tree the number of cases
across each level is N , and this is also the worst case considering compu-
tational costs given the height h of the tree. The total cost of growing a
full binary tree of height h is approximately O(hpN ), assuming that for
each node and variable the cost of ﬁnding the best split for one variable
and one node with Nt cases is O(Nt), that p variables are to be considered
each time, and that the sum of all Ni across a level is N with a total of h
levels.

This means that the entire growing process scales linearly with the
factors N , p, and h. For subtrees of the full tree, the computational costs
decrease correspondingly. N and p are ﬁxed for a given dataset, therefore
the complexity depends only on the number of cells in the dataset and on
the height of the tree.

The height h is not directly deﬁned by the data but depends on the
stopping rule used for generating the tree and on the amount of infor-

2 Some programs such as Quinlan’s C4.5 and C5.0 split nominal variables to Ci
branches where each branch corresponds to one category. This greatly reduces
the costs of such splits, but they are not often desirable because groups of cat-
egories are not allowed.

9.2 Growing Trees for Large Datasets

181

mation contained in the data. Trees for classiﬁcation problems tend to
be smaller than regression trees, because of the ﬁxed set of possible pre-
dicted values in the classiﬁcation. If the tree manages to separate the
classes fairly well, i.e., each terminal node corresponds to one class, then
h will be of the order of log C in the optimal case of a full tree (a full tree
with k-way splits of height h has kh terminal nodes and those correspond
to the C classes), or at worst C − 1 for an unbalanced tree, i.e., a tree that
splits off only one terminal node at each level. Given a large dataset, p · N
is by far the most dominant factor.

The conclusion of this analysis is that the greedy algorithm scales ap-
proximately linearly with the size of the dataset and so is suitable for
modelling large datasets. The number of variables and the number of
cases both have the same weight in the computational complexity.

Before continuing with the complexity of pruning methods, consider
the evaluation of tree models. A new case is evaluated in a tree model by
passing the case down the tree according to the splitting rules along the
way. At each node only one variable has to be evaluated. This means that
the result is reached after at most h steps, which is very fast for most
trees.

It is possible to grow large trees, but arbitrarily large trees are not
necessarily useful, and pruning methods are used to prevent overﬁtting.
Good pruning gets rid of uninformative branches and cuts back to the
essentials of the tree. The effects of pruning can be seen in outline by
overlaying the trees before and after pruning. Of course, the pruned tree
can be visualized in detail more easily than the unpruned tree.

9.2.2 Scalability of Pruning Methods

As long as any two cases with equal predictor vectors belong to the same
class, it is possible to construct a perfect tree — that is, a tree that clas-
siﬁes every case of the training set correctly simply by growing the tree
until all terminal nodes are homogeneous. This tree will be very large
because it consists of up to as many terminal nodes as observations. The
practical value of the tree will be low, because the misclassiﬁcation rate
for test samples will be high.3 It is necessary to ﬁnd a balance between
tree size and general prediction accuracy.

One way is to use stopping rules. They deﬁne conditions determin-
ing when the growing process should be stopped, usually by specifying
thresholds for the number of cases in a node and for the impurity decrease
of a split. Stopping rules are very easy to implement and computationally
cheap because the values are calculated during the tree construction pro-
cess. Their main disadvantage is that they do not necessarily produce

3 Unless the underlying problem is not noisy, but then the tree is likely to be

small and pruning is not needed.

182

9 Trees

good trees. Sometimes, a tree has one weak split followed by a strong
one, because the group of interest can only be separated by using the two
splits in combination. A stopping rule could prevent this, if the ﬁrst split
falls below the speciﬁed threshold.

Consequently, the reverse method is used — trees are grown to their
full size and pruned by removing branches that are weak. There are many
pruning methods, and here two will be described, representing both the
classical approach and the statistical testing approach: cost-complexity
pruning and a statistical testing procedure.

Examining all possible combinations of pruned branches is computa-
tionally not feasible, so both methods use the idea of the weakest link.
All lowest-level inner nodes are examined, and the one with the smallest
contribution is removed. This is repeated recursively until the root node
is reached. From the sequence of trees obtained, an optimal one is chosen.
The main differences in the pruning techniques lie in the choice of the
best tree and in the method of ﬁnding the weakest link. Cost-complexity
pruning uses a measure

Rα(T ) = R(T ) + α|T term|

where R(T ) denotes the estimate of the true misclassiﬁcation rate of T
and |T term| the number of terminal nodes of T . The weakest link is deter-
mined by the node minimizing the function

g(t) =

R(t) − R(Tt)
|Tt| − 1

among all lowest-level inner nodes. The branch at this node is pruned
and the procedure is repeated recursively until the root node is reached.
Therefore, the maximal number of steps is given by the number of inner
nodes of the full tree. It remains to check how expensive the evaluation
of R(T ) is and how expensive it is to ﬁnd the minimal g(t).

For the resubstitution estimate of R(T ), corresponding values for
R(Tt) can be calculated by passing all cases of the training set down the
full tree and updating values of R(Tt) for every inner node. This process
has complexity O(hN ) as observed in the last section. The evaluation of
R(Tt) then takes a ﬁxed time. Finally, ﬁnding the weakest link in each
step takes at most Nt(T ) evaluations, so the entire generation of a pruned
sequence has complexity O(hN + |T term|).

The ﬁnal step is to ﬁnd the optimal tree from the sequence. This can-
not be done using the resubstitution estimate R(T ), because this would
correspond to assuming the full tree ﬁts the training data best.

Usually, cross-validation is used for creating a misclassiﬁcation rate
estimate, but that is computationally expensive. The motivation for the
use of cross-validation is to compensate for small numbers of observa-
tions.

9.2 Growing Trees for Large Datasets

183

In a data-rich situation, however, it is feasible to split the dataset into
training and test parts. The test set can then be used to calculate a mis-
classiﬁcation rate estimate by passing the test data down the tree and
calculating R(Tt) for every inner node. Given Ntest test observations, the
process has complexity O(hNtest).

Given a reasonable height of a tree, the pruning process is directly
proportional to the number cases in the dataset. The complexity is almost
of the same order as the growing process except for the missing p factor. It
is clear that tree models with cost-complexity pruning using test sample
estimates are computationally feasible even for large datasets.

Before discussing issues encountered in practical applications of tree
models for large datasets, the next section brieﬂy considers the behaviour
of statistical tests when there are many observations.

9.2.3 Statistical Tests and Large Datasets

Some pruning methods such as the Statistical Testing Procedure (STP)
(Cappelli et al.; 2002) use hypothesis tests for determining “optimal”
trees. The computational aspect of the application of statistical tests for
pruning is dominated by the calculation of the test statistics for each node
to be tested. For the most common “weakest link” approach, each itera-
tion requires consideration of those inner nodes with terminal nodes as
children. This implies that at most Ni statistics must be calculated where
Ni deﬁnes the number of inner nodes. The number of cases used for the
calculation is constant across one level, as for cost-complexity pruning.

In the latter case it was argued that only a constant time is needed for
evaluation of an individual misclassiﬁcation estimate. For a test statistic
the computational complexity depends on the statistic used. The statisti-
cal testing method referred to above uses a weighted criterion of impurity.
In order to satisfy independence assumptions, it must be applied to a test
set, consequently the calculated criterion from the building process can-
not be used. Fortunately, the statistic is additive with respect to inner
nodes, so it is sufﬁcient to calculate the partial statistic for each inner
node once.

The actual testing requires the calculation of the critical value. Given
the Gini Index as the impurity criterion, this is trivial as the statistics are
χ2
C−1 distributed with C denoting the number of classes in the response
variable. The handling of regression trees is slightly more complex as this
requires the computation of critical values for F statistics with degrees of
freedom that also depend on the number of cases in a node. In both cases
the computation of the statistics is the dominating factor with O(hNtest).
Using statistical tests in conjunction with large datasets requires con-
sideration of the computational aspect of the tests but also of the statis-
tical aspects. Besides the usual issue of multiple testing, there is also the
effect of sample size inﬂuencing the behaviour of the statistic.

184

9 Trees

The STP statistic for a classiﬁcation tree T can be expressed as follows:

C

1
|T inner|

(cid:4)

t∈T inner

Δit Nt ∼ χ2

C−1,

where |T inner| denotes the number of inner nodes and Δit the impurity
gain in the node t with respect to the Gini Index. To check the behaviour
of the statistic with respect to the number of cases N , consider ﬁxed class
proportions in the nodes and varying numbers of cases. Because Δi de-
pends only on the class proportions in inner nodes, it is ﬁxed for all N
the same way as C is ﬁxed. Given trees with the same node structure
and class proportions, their STP statistic will increase proportionally to
N . Because the distribution is ﬁxed and depends only on C, but not on
N , increasing N will lead to the null hypothesis being rejected more of-
ten. There always exists a sufﬁciently large Npc such that, for any given
class proportion pc ∈ (0, 1) of the class c, the null hypothesis will be
rejected, which corresponds to retaining the split. Effectively, for large
N , this means that splits containing many cases are very unlikely to be
pruned, no matter how “poor” the split was in terms of impurity.

The dependency of statistical test results on dataset size has been
illustrated using one practical example. This is not a special case, but
rather the rule. Hypotheses tend to be rejected more often with increas-
ing numbers of observations. Hand et al. (2000) describe several such
problems encountered in practice. For large datasets, regular stopping
rules based on relative impurity gain will abort the tree building earlier
than test-based pruning strategies. Therefore, in most cases it is better
and more efﬁcient to use pruning methods based on misclassiﬁcation or
on residuals.

9.2.4 Using Trees for Large Datasets in Practice

Because tree growing and pruning procedures have linear computational
costs, they are feasible for large datasets. In fact, the growing algorithm
can be easily parallelized, allowing even faster computation.

One level of parallelization is possible by assigning the task of ﬁnding
the best split of a variable to a single processing unit. This allows the
use of p parallel units. Further parallelization is possible at node level.
If the stopping rule is not met, two new nodes are created and each can
be processed by an independent set of processing units. The evaluation of
trees is also highly parallel because every passed case is independent of
all others.

This is a nice theoretical result, but the question is how well cur-
rent implementations of tree model construction cope with large datasets.
Probably the most popular methods for handling trees are the rpart and
tree libraries for the R/S-plus statistical environments. R version 2.2.0

9.2 Growing Trees for Large Datasets

185

has been evaluated here. As a representative of commercial packages,
See5/C5.0 and its free companion C4.5 have been chosen, because they
claim to be suitable for large datasets, although they are restricted to
classiﬁcation trees.

In order to test the performance and practical value of the programs,
some real-life data were used — the US census data, extracted from the
Integrated Public Use Microdata Series (IPUMS) database (Ruggles and
Sobek; 1997). The complete dataset consists of approximately 25 million
cases. Each case has 13 attributes of various types: continuous, ordinal,
and nominal. A summary is given in Table 9.1. C4.5 and See5 expect a
csv (comma separated values) ASCII data format so ﬁles of that format
have been used for all tests to assure comparability.

R is a general-purpose tool, and the main memory overhead is due to
data loading. Once the data are loaded in R, the tree generation itself is
fast. Using the tree library, the tree construction took 9 seconds, its more
ﬂexible counterpart rpart took 47 seconds without cross-validation, both
on 250,000 cases. This process consumed hardly any memory.

Both C4.5 and See5 are very fast in loading the dataset and use very
little memory overhead. It is evident that these are one-shot programs
specialized for the task. Nevertheless for tree generation C4.5 turned out
to scale very badly for large datasets. Where C5.0 needed only 32 seconds,

Table 9.1. Attributes of the IPUMS Census Dataset Used for the Analysis

Attribute Description

stateicp

US State (ICPSR code)

ownershg Ownership of dwelling

mortgage Mortgage status

value

House or property value

Type
ordinal∗
categorical

categorical

continuous

nchildren Number of own children in the household

ordinal

age

sex

raceg

marst

Age

Sex

Race

Marital status

educ99

Educational attainment

empstatd

Employment status

inctot

Total personal income

migrat5g Migration status, 5 years

continuous

categorical

categorical

categorical

ordinal

categorical

continuous

categorical

∗State code is treated as ordinal, because the codes are approximately geograph-
ically ordered from East to West, which makes it easier to depict effects that are
on a larger geographical scale.

186

9 Trees

Table 9.2. Performance of See5 Constructing Classiﬁcation Trees of Different Sizes
on the Same Dataset (the number of cases is given in thousands)

Cases (k)

Time (s)
Nt

166

31

332

90

499

95

665

163

831

217

998

304

1164

1330

1496

432

448

484

1016

1272

1921

2121

2740

3193

3465

3865

4089

C4.5 took 429 seconds. See5 performs very well and comes close to the
theoretical result of linear scalability for the construction and pruning of
trees, shown in Table 9.2.

Before discussing the size of a tree, it is worth looking at datasets
where many attributes and only a few observations are involved. One of
the natural advantages of trees is that tree models automatically select
a subset of predictors, which contributes most to the explanation of the
data, because at each step a locally optimal variable is used for the split.
This behaviour is especially helpful in cases where the goal is to choose
best predictors from a large set, most of which contain noise. On the other
hand, trees are not suitable for cases where some combination of all co-
variates is likely to explain the response variable. Due to their stepwise
orthogonal approach only very large trees are likely to obtain a sensible
result at all, but then interpretation is difﬁcult. Combined methods such
as double-bagging (Hothorn and Lausen; 2003) can then be used.

The size of the tree varies both with the program used and the dataset
size. tree and rpart use a stopping rule specifying the minimal relative
improvement of a split. If the measure of impurity does not decrease by a
speciﬁed percentage, the tree growth is stopped. The default setting of 1%
resulted in small trees of only 4 terminal nodes, even without pruning.

)
s
n
i
(
e
m
T

i

0
0
5

0
0
4

0
0
3

0
0
2

0
0
1

0

rpart (G5)
See5 (AMD)

200

400

600

800

1000

1200

1400

Cases (in thousands)

Fig. 9.1. Scalability of rpart and See5 with increasing sample size. Different ma-
chines had to be used for licensing reasons.

9.3 Visualization of Large Trees

187

On the contrary C4.5 and See5 tend to grow very large trees. As Ta-
ble 9.2 shows, the size of trees generated by See5 grows with the number
of cases. However, the misclassiﬁcation rate achieved was consistently
around 20%. Interestingly, the misclassiﬁcation rate of smaller trees was
not worse, which shows that larger trees were not necessarily better.

The size of the ideal tree depends primarily on the information con-
tained in the data and not on the dataset size. Setting a low threshold for
stopping rules based on information content will produce larger trees, but
in general they will not be very useful in practice unless the underlying
data have the corresponding complex structure.

The most common stopping rules use an impurity decrease thresh-
old and a node size threshold. The ﬁrst rule says that the tree growth is
stopped if the split does not reduce the measure of impurity by at least
a speciﬁed amount. The second rule prevents splitting of nodes smaller
than a given size. The importance of each rule changes with dataset size.
For small datasets, the node size threshold is likely to be critical ﬁrst.

This stopping rule is usually not relevant for large datasets, because
the resulting nodes contain many cases. It is the impurity decrease rule
that becomes critical ﬁrst. The threshold must be low enough to produce
prunable trees. On the other hand, too low a threshold results in late
stopping, trees that are too large, and increasing computational costs.

For problems where prediction power is of primary interest and mod-
elling data structure is less important, large trees can be used if they
are carefully pruned to prevent overﬁtting. With large datasets there are
quite enough observations for both training and test datasets.

For exploratory goals, that is discovering a structure behind the data,
it is recommended to grow smaller trees, but to check their stability. If
small changes in the data result in apparently randomly different trees,
then the tree is not likely to be reliable. Graphical analysis of tree sta-
bility, variable importance, and other properties of a tree are discussed
further in Section 9.4. Once a stable tree has been found, a graphical rep-
resentation is needed to understand both the model and its relation to the
data. Therefore, it is important to consider different ways of looking at the
tree and to discuss questions that arise from the use of large datasets.

9.3 Visualization of Large Trees

9.3.1 Hierarchical Plots

Visualization of the hierarchical structure of a tree is the most natural
way trees can be displayed. Although the idea is the same for all such
plots, the placement of nodes and the representation of nodes and edges
can vary. A sample plot of a tree produced from the IPUMS data is given
in Figure 9.2.

188

9 Trees

root

yes

age< 57.5

yes

age>=57.5

no

value< 35000

yes

value>=35000

yes

age< 66.5

no

age>=66.5

no

value< 15000

no

value>=15000

value< 65000

value>=65000

yes

no

yes

migrat5g=1

migrat5g=2

no

yes

empstatd< 25

empstatd>=25

yes

no

value< 8750

value>=8750

no

yes

stateicp< 56.5

stateicp>=56.5

no

yes

Fig. 9.2. Classiﬁcation tree based on the IPUMS data.

The task was to predict whether the house in which the family lived
was owned free and clear or whether there was a mortgage or other kind
of debt on the house. The resulting tree allows some quite interesting con-
clusions. Younger people usually did not own the house clear unless it was
of low value. Even then it was important whether they had moved into the
house more recently (migrat5g=2), in which case they were more likely to
need more money. Older people usually had no mortgage on their houses,
unless the house was expensive. For expensive houses it was also im-
portant whether the owners were still employed (empstatd<25). Retired
people were more likely to own their own house without any mortgage.

Although 400,000 cases were used for construction, the tree itself is
not large. The display of the tree is no more complicated than displaying
a tree based on 100 cases. Slight delays may occur if linked highlighting
is used for interaction. It is necessary to identify cases in each node to
determine the number of selected cases in each node. This operation is of
order O(hN ). Selecting cases in a node is very fast, because it is possible
to keep track of all case IDs present in each node.

Most other interactive operations on a tree, such as pruning, moving
branches, or changing the representation of nodes, do not require access
at case level and are therefore not affected by the number of cases.

There is an additional problem for large datasets that is not of compu-
tational origin but that is common for many plots. The resolution of the
screen is limited and therefore causes discretization of the information
presented. If each node is represented by a rectangle of width 100 pixels

9.3 Visualization of Large Trees

189

and the highlighting is done horizontally, then only changes of 1% or more
of the displayed amount are visible. This is no issue if the data consists of
around 100 cases, but for large datasets this can pose a serious problem.
This effect is ampliﬁed if absolute scaling is used, that is when the
size of each node is drawn to represent the number of cases in that node.
Any node of a size of 1% or less will simply disappear if displayed like
this, and that is still as much as 10,000 cases for a dataset of 1 million.
This problem is not speciﬁc to tree displays. Hofmann has introduced so-
called “redmarking” for interactive plots in her software MANET. If a bar
in a barchart or histogram would be displayed with a height of zero due
to rounding, but there is at least one case to be represented, then a red
line below the bar is drawn to denote the fact. Redmarking is discussed
more generally in Section 4.3.7.

The sizes of nodes can be changed interactively for tree displays to
counteract this effect, but nodes that are too large will overlap and over-
load the plot. A combination of redmarking and censored zooming can be
used. Nodes larger than a certain size are displayed at a ﬁxed size and
marked as such to indicate that cropping has occurred. Redmarking is ap-
plied to very small nodes, that is they are displayed at a constant size to
prevent them “disappearing”. The “window” of sizes which are displayed
in true proportions can be changed interactively to concentrate on nodes
of interest. The idea is illustrated in Figure 9.3.

For large datasets, you can grow virtually arbitrarily large trees, if the
stopping and pruning criteria are deﬁned loosely enough. The construc-
tion of large trees is usually not desired for exploratory analyses, but it
can be of interest if prediction accuracy is the main goal and overﬁtting
does not occur. Although the interpretation of large trees is difﬁcult, it
is helpful to visualize such trees to get a global view of the tree and to
check for any dependencies that may contradict known facts. Related vi-
sualization problems arise for networks with large numbers of nodes as
described in Chapter 8.

The ﬁrst difﬁculty is the appropriate placement of nodes. The nodes
should not overlap, connecting lines should not cross and the order of
branches should be maintained. The order of the branches is usually well
deﬁned for continuous and ordinal variables, reﬂecting the order of the
variable or the predicted value.

One design satisfying all those requirements is the recursive bottom-
up layout. The space available for the tree is divided into Nt equal parts
and each terminal node is placed in the center of that space. Each parent
node is placed at the center of the space used by its child nodes. This
assures that no nodes overlap, because any child node can have only one
parent node. The connecting lines will not cross if child nodes of the same
parent are always kept together. The placement in the height-axis can be
arbitrary as long as child nodes are always plotted below their parent.
The possibilities include equidistant partitioning of the height space or

190

9 Trees

root

yes

age>=57.5

no

value>=35000

yes

age< 66.5

no

age>=66.5

no

age< 57.5

yes

value< 35000

yes

value< 15000

value>=15000

value< 65000

value>=65000

no

yes

no

yes

migrat5g=1

migrat5g=2

no

yes

empstatd< 25

empstatd>=25

yes

no

value< 8750

value>=8750

no

yes

stateicp< 56.5

stateicp>=56.5

no

yes

original node size

root

yes

value>=35000

yes

age< 57.5

yes

value< 35000

yes

age>=57.5

no

age< 66.5

no

age>=66.5

no

value< 15000

value>=15000

value< 65000

value>=65000

no

yes

no

yes

migrat5g=1

migrat5g=2

no

yes

empstatd< 25

empstatd>=25

yes

no

value< 8750

value>=8750

no

yes

stateicp< 56.5

stateicp>=56.5

no

yes

4x node size zoom with censoring

Fig. 9.3. Censored node size zoom illustrated on a classiﬁcation tree with node
sizes proportional to the numbers of cases. Nodes represented by a red rectangle
are in fact smaller than the displayed size; nodes with a red bar atop are in fact
larger.

9.3 Visualization of Large Trees

191

3

3

3

1
1

3

3

3
1
3
3
1
3
3
3
31
1
3
1
1
3 1
3
3
3
3
3
3
11
3
3
1
1
1
1
3
3
3
1
31
3
3
31
3
3
31
31
3
1
11
31
31
31
3
3
3
1
3
3
3
3
31
13
33
33
31
3
3
31
33
33
33
33
13

3

3

3

3
3
3
3
33
3 3
3
3
3
3
3
3 1
33
43
33
3
3
13
31
13
41
33
33

3
3
3
3
3
3
3
33
3
3
3
3
1
3
3
3
33
13
31
13
3
3
3
3
33
3
3
33
33

3

3

3

3
3
3
3
33
3
3
3
3
33
33
31
1
3
3
3
33
13
33
33
3 3
33
33
3
3
31
33

3
3
3
3
3
3
3
33
3
33
3
3
3
3
33
3
3
33
33
33
33
3
3
3
33
33
13
3
3
33
33
33
33

3
3
3
3
3
33
3
3
3
3
3
33
33
3
3 3
33
33
13
3
3
33
3
3
3
3
33
33
33
33
33

3

3

3

3
33
3
31
33
33

3

3

3
3
3
3
3
3
3
3
3
3
3
3
3 3
33
3
3
3
33
1
3
3
3
33
33
33
3 3
33
33

3
3
3
3
33
3
3
3
3
3
3
3
13
33
33
3 3
3
1
3
3
33
3
3
3
3
33
33
3
3
33

3

3

3
3
3 3
3
3
3 3
3
3
3
3
3
3
3
3
3 3
3
3
3
33
3 3
3
33
3
3
33
33
3
3
33
33
33
3
3
3
3
3
3
3
3
33
33
33
33
3
33
3
3
3
33
33
33
33

3

3

3

1

1

3

3

1

1
1
3
1 3
1
1
1
1
3
3
3
1
1
1
3
3
1
1
1
1
1
33
3
3
3
3
13
31
3
1
31
31
1
1
1
1
3
1
1
1
33
3
3
3
3
3 3
33
1
1
33
1
1
1
1
11
11
11
33
31
3
3
1 3
33
13
11
11
13
33
3
33
3
1
1
31
11
33
3
3
11
33
31
31

3
3 3
3
3
13
3
3
3
3
31
33

1
1 3
1
1
11

1
3
1 3
1 3
1
3
11
3
1
33

3
3
3
1
33
3
13
33
3
3
3
3
3
3
31
33
3
3
33

3

3

3

3

3
3

3
3
3
3
3 3
3
3
3
3
3 3
33
3
3
3
3
3 3
33
33
3
3
33
3
3
33
33
33
33
33

3

3

3

3

3

3

3

3

3

3

3

3

3

3

3

3

3

3

3

3

3

3

3

3

33

3

1

1

3

3

3

3

3

3

1

3

3

1 3

1 3

3

3

3

3

1

1

1

1

1

3

1

1

3

1

1 3

3

3

3

3

1

1

1 3

3

3

3

3

3

3

1 1

1

3

3

3

1

3 3

3

3

3

3

3

3 3

1

1

1

1

1

3

3

1

1

1

3

3

3

3

3

3

3

3 3

1

1

1

1

3

1

1

1

3 1

3 1

1

1 3
3

31

3

3

3

3 1

33

1 1

1 1

1 1

1

1

1

1

3 3

1

1

3 3

3

3

3

3

3 3

3 3

3

3

3

3

3

3

3

3

3

3

3

3

3 3

3 3

3

3

3 1

3

3

1
3 3

3

3

3

33

3 3

3 3

1 3

3 3

3
3 3

3

3 3

3

3

3

3

3

3

3

3

1
1 1

3

3

3

13

33

3 3

3 3

3

3

3 3

3 3

3

3

3

3

3

3

3 3

33

1 3

11

1 1

1 3

33

1 3

3

3

3

3

3
3

3 3

3 3

33

3

3

3

3

1

3

3 3

3
3 3

3

3

3

3

3

3

3

3 3

33

33

3 3

3 1

3

3

33

1 1

3 1

3 3

3

3

33

3

3

33

3 3

33

3

3

3

3

33

3 3

3 3

3

3

3

3

3 3

3 3

3 3

3

33

3

3

33

33

3 33

3 3

3 3

3 3

33

3

3

3 3

3 3

33

3 3

3 3

31

3 3

3 1

3

3

33

1

1

1 1

value < 55000

1

value < 25000

value > 25000

1

3

migrat5g: 1

migrat5g: 2

raceg: 1,3,5,6

raceg: 2,4

1

3

1

3

educ99 < 10.5

3

3

3

3

3

13

3 1

33

age < 62.5

3

value < 8750

value > 8750

migrat5g: 1

migrat5g: 2

1

1

1

3

age > 43.5

marst: 1,3,4

marst: 2,5,6

stateicp < 34.5

stateicp > 34.5

1

1

1

3

migrat5g: 1

3

age < 60.5

3

mig

3

se

3

age > 60.5

1

educ99 < 9.5

educ99 > 9.5

educ99 < 8.5

educ99 > 8.5

raceg: 1,3,4,5

raceg: 2,6,7

raceg: 1

raceg: 2,4

inc
inc

1

1

1

3

3

3

1

3

3
3

3

45.5

stateicp > 45.5

3

5

stateicp > 42.5

raceg: 1,2,3,4,6

raceg: 5

stateicp < 46.5

stateicp > 46.5

inctot < 17810

inctot > 17810

stateicp < 37.5

stateicp > 37.5

3

3

3

3

3

3

3

3

3

value < 375000
5

value > 375000

inctot > 245013

inctot < 245013

3

3

3

3

value < 125000

value > 125000

inctot < 29250

inctot > 29250

3

3

3

1

age < 55.5

age > 55.5

3

3

inctot < 18065

inctot > 18065

3

3

Fig. 9.4. Logical zoom for large trees, illustrated on an unpruned tree based on the
IPUMS data.

192

9 Trees
(cid:19)

nt
using h
N , where nt denotes the number of cases in node t. This layout
is used by KLIMT for its ﬂexibility and is suitable for small and medium
sized trees.

Many different layouts exist in order to reduce the space used by the
graph. It is partly a matter of taste, because most layout methods try to
include an aesthetic optimization, but experience suggests that reducing
the space used makes the plot harder to interpret, because terminal nodes
are no longer evident at a glance.

Consider the size of a tree that can be displayed on a screen in its
entirety. Given a node size of 100×40 pixels (including the surrounding
free space), a working window of 800×600 allows a maximum of 8 visible
nodes at one level for vertical orientation and 12 for horizontal orienta-
tion. This is clearly inadequate for large trees.

One solution is the use of interactive pan and zoom. To get an overview,
the entire display can be zoomed out to present a structural overview. Lo-
cal analysis can be done by zooming into the area of interest and exploring
in the local neighborhood. Logical zooming (see also Section 4.4.3) can be
used to prevent overloading as illustrated in Figure 9.4. At ﬁxed zoom
threshold levels, the display changes from more detailed to less detailed
and vice versa, similar to the way many electronic maps are implemented
nowadays.

The use of multiple views of the same tree simpliﬁes navigation and
improves interpretability. One smaller overview window with large zoom
out gives a bird’s eye view and can be used to capture the overall structure
while another bigger working window is used for further zooming in.

Alternative techniques proposed for large hierarchies are the spheri-
cal projection hyperbolic browser (Lamping and Rao; 1995) and ﬁsheye
views (Furnas; 1986). In all cases, the original planar layout is projected
in a non-linear way. The idea is to emphasize an area of interest by using
larger distances between nodes in the projection center than for nodes
further away. The main problem of all distorting projections is navigation
in the space. Because of the distortion, structures that were identiﬁed in
one view can seemingly fall apart or be hard to locate again when the pro-
jection changes. There are several layout libraries available for this task,
which are used in computer science, but such techniques have not been
used for statistical trees yet.

9.3.2 Sectioned Scatterplots

Statistical trees can be seen in more ways than just as a hierarchical
structure. In their role as a predictor, they partition the space of covari-
ates, usually orthogonally to the axes. For each partition, a prediction
model is used. In the case of CART this is a constant model. A natural way
to explore the impact of continuous and ordinal covariates on the tree is

9.3 Visualization of Large Trees

193

Fig. 9.5. Sectioned scatterplot of property value vs. age. Black lines in the plot
represent splits. Red points represent houses with some kind of mortgage.

to draw sectioned scatterplots. Each scatterplot is a two-dimensional pro-
jection of the covariate space and therefore it can be enhanced by adding
sectioning lines orthogonal to the axes and corresponding to the splits.

Figure 9.5 shows a sectioned scatterplot. It is a textured scatterplot4
that displays the value of the property and the age of the family member
for more than 600,000 cases. α-blending is used to prevent overplotting
and provide a rough density estimator. It is evident how the model at-
tempts to separate people with low-value houses, which are unlikely to
be mortgaged, and older poeple that are likely to have paid their mort-
gage in full already.

The primary drawback of sectioned scatterplots is that only two co-
variates can be shown at once and so splits on other variables are not vis-
ible. General solutions for this problem offer matrices of sectioned scatter-
plots or interactive methods, where only a subset of the total population
is displayed. Especially in the interactive context, sectioned scatterplots
provide a nice way of analysing trees, because they visualize the neighbor-
hood of a split, allowing a visual assessment of the quality and variability
of each split. Most interactive tools available for scatterplots, such as pan,
zoom, brushing, or queries, apply to sectioned scatterplots as well.

Are sectioned scatterplots suitable for large datasets? Trees tend to
use only a limited set of covariates even though the dataset may consist

4 A textured scatterplot is the generalization of a textured dotplot (basically a
more sophisticated form of jittering) as described in Tukey and Tukey (1990).

194

9 Trees

of many attributes, as discussed in Section 9.2.4. Such a limited dataset
may not be large, but it usually contains more than two covariates.

One complementary method to obtain more informative sectioned
scatterplots is to use a technique similar to node size censoring described
in the previous section. The idea is to plot a sectioned scatterplot for a
subtree instead of for the entire tree and to stop after a certain depth of
the tree. The resulting plot concentrates on a local neighborhood of the
subtree relative to the hierarchical structure.

Selecting a subtree corresponds to zooming into the original plot, if the
tree contains only two covariates. In other cases, selecting a subtree also
leads to a change of projection, because other covariates will be used. This
process can be repeated recursively to allow a complete walk through the
tree, though the changes of projection must be treated with care. Guid-
ance can be provided by a hierarchical plot displayed in parallel.

The use of large datasets leads also to problems inherent in scat-
terplots in general, as discussed in Section 3.4.2. A cloud consisting of
many observations results in a continuous monochromatic area. Any lines
shown in such areas delineating splits are uninformative, because the
presence of many points hides any structure that the tree tries to depict.
Many different techniques have been used to solve this problem, because
it is not unique to sectioned scatterplots. In most cases, some kind of den-
sity estimate is used.

Most density estimation methods are suitable for sectioned scatter-
plots, but there are some points to consider. Due to the orthogonal nature
of splits, methods using different geometry such as hexagonal binning
cannot be recommended. Rectangular binning gives good results. It is pos-
sible to modify the range and binwidth in order to match the binning to
the split under inspection. A slight variation of the bin range can reveal
extra information about the splits, such as whether they are sharp or not.
Interactive case selection can be a problem if density estimates are
used. If only a few cases are selected, they can be directly plotted on top
of the scatterplot, but with large datasets this is rarely the case. For large
selections, it is necessary to combine density estimates for the data and
for the selected part, possibly using α-blending.

In many cases, continuous variables are only available in discretised
forms. A textured version of the scatterplot in Figure 9.5 has been used,
because the underlying data consist of relatively few discrete values. Age
is given in years and property values in thousands. When the levels for
both variables are aggregated, it is possible to use ﬂuctuation diagrams
as for categorical data, but with levels ordered according to their value.
It is possible to draw sections in ﬂuctuation diagrams in the same way
as they are plotted in scatterplots. An example of a sectioned ﬂuctuation
diagram is given in Figure 9.6.

Fluctuation diagrams provide a density estimate and also allow the
use of linked highlighting. In Figure 9.6, all houses without mortgages

9.3 Visualization of Large Trees

195

400

350

270

220

180

160

130

110

95

85

77

72

67

62

57

52

47

43

37

32

27

22

17

12

5

NA

5

10

15

20

25

30

35

40

45

50

55

60

65

70

75

80

85

90

Fig. 9.6. Sectioned ﬂuctuation diagram of two discretized continuous variables
age and value with highlighted cases where the family owns the house free and
clear.

have been highlighted in red. The plot shows both the approximation of
the bivariate distribution of all cases by the size of each rectangle, and
the conditional distribution of the selected cases. It reﬂects the structure
as described by the tree: older people and families owning cheap houses
tend to be clear of mortgage.

Interesting information about the dataset can be derived from the fact
that even children are registered as owning houses. All members of the
family are recorded in the database with the attributes of the entire fam-
ily. This explains the high-density area among children up to 18 years of
age and the gap afterwards. Young people older than 18 years of age usu-
ally leave the family and rent, so they do not appear in the dataset until
they buy their own house.

Fluctuation diagrams are area-based plots, unlike scatterplots. This
makes them practical for dealing with large datasets. The sectioned scat-
terplot in Figure 9.5 takes minutes to draw, whereas the ﬂuctuation dia-
gram in Figure 9.6 is displayed within a few milliseconds. There are more
area-based plots that can be used for the representation of trees. The ad-
vantages of area-based plots for large data are discussed in Section 3.3.

9.3.3 Recursive Plots

A common way of handling large datasets is to use area-based plots in-
stead of case-based plots. It is possible to partition a ﬁxed rectangular
area in the same way the tree partitions the sample data. This idea is uti-
lized by treemaps. A treemap is constructed by partitioning the available

196

9 Trees

plot space alternately horizontally and vertically according to the propor-
tions of cases belonging to each branch. An additional enhancement in
the form of depth-shading has been included. Each partition is shaded
according to the depth of the associated leaf. Leaves that are the result of
more splits are deeper down and therefore darker. This helps to display
the structure of the tree. A shaded treemap is shown in Figure 9.7.

Treemaps are independent of the number of covariates used in the
splits and they also do not depend on the number of observations, so they
are suitable for large datasets.

The number of cells corresponds to the number of terminal nodes, so
the behaviour of treemaps is not determined by the number of cases, but
by the size of the tree. As with the visualization of hierarchical structures,
the problem of treemaps for large trees has arisen in computer science as
well (Turo and Johnson; 1992).

Many problems result from the fact that discretization is necessary
in order to construct a picture on a pixel-based medium, such as a com-
puter screen or printer. Due to screen resolution constraints, nodes that
are too small may not be drawn if their correct width or height is less
than one pixel. This problem is usually addressed by specifying a minimal
width and height of one pixel and using a different colour to denote non-
proportional representation. This approach leads to another problem, if
many small nodes are present. Assume a tree is split in 11 branches
where one branch includes 50% of all cases and the remaining have 5%
each. Given 10 pixels for the entire branch, the ideal distribution would
be to use 5 pixels for the ﬁrst branch and 0.5 each for the remaining ten.
Using a single pixel for each of the 10% branches ensures that there is no
space at all for the ﬁrst and largest branch. Therefore for every treemap

Fig. 9.7. Depth-shaded treemap. Selected in green are cases with a mortgage.

9.3 Visualization of Large Trees

197

there is a minimal size that is needed for the display. If the screen size is
smaller than this, zoom and pan must be used for navigation and logical
zooming to provide an overview-treemap.

Another issue arises from the fact that each partition consists of a
border and an inner area. A partition of size 2 pixels or less cannot have
both, because each border needs one pixel and yet another pixel is needed
to represent the inner area. In a truly proportional setting, a border be-
longs to at least one partition. In practice, there are two ways of plotting
a recursive area-based plot. The ﬁrst method is to reduce the number of
available pixels by the number of ﬁxed pixels, such as borders, and to
partition the remaining space according to the relative size of each par-
tition. The second method is to take the total available area, determine
the exact position of each partition and draw a line at the rounded exact
position. The latter method results in a proportionately correct display,
but can lead to partitions disappearing. The former method can produce
the overﬁlling effect described in the previous paragraph.

Both effects can be circumvented by using zoom and pan. Labeling
of treemaps is a problem due to space constraints, so interactive queries
offer the most appealing solution.

Treemaps are not negatively affected by the number of cases since
they are area-based plots. Problems arise if the size of terminal nodes
varies very much or if too many small nodes are present. These problems
are inherent in all area-based plots and can be solved by using interac-
tive navigation as discussed in Section 4.4.3. Spineplots of leaves (e.g.,
Figure 9.8) are constructed in the same way as treemaps, except that the
splitting direction remains ﬁxed instead of alternating. Treemaps and
spineplots share the same properties with respect to large datasets. Both
plots are suitable, given the support of interactive techniques.

Fig. 9.8. Depth-shaded spineplot of leaves with cases with a mortgage selected.
The order of bars corresponds to the order of terminal nodes in Figure 9.2 from left
to right.

198

9 Trees

9.4 Forests for Large Datasets

The idea of classiﬁcation and regression trees has been around for some
time. Trees have proved to be powerful for non-linear problems and for
cases where weak or no assumptions about distributions of the covariates
can be made. These properties meant that trees were used for more than
just exploratory purposes, where their good interpretability was the main
advantage. This has led to research on improvement of the prediction
accuracy of tree models.

The aim is to produce better classiﬁers by combining predictions
from several trees. Many methods have been suggested including bag-
ging (Breiman; 1996), boosting (Schapire; 1999), and random forests
(Breiman; 1999). Unfortunately, forests are often impenetrable, because
the nice interpretability of a single tree cannot be extended to an entire
forest. There is indeed information hidden in the forests and graphical
methods for extracting it have been proposed, especially for forests gen-
erated from large datasets. Apart from information about prediction ac-
curacy, there is information on the stability of trees (how different the
trees in the forest are), and there is information on the covariates used.
Given a large set of covariates, trees tend to use only a few for splitting.
Graphics can help to show the contribution of each predictor variable to
the models.

In the following, the analysis is restricted to classiﬁcation trees, but
the results and methods can be extended easily to regression trees. With
large datasets, it is possible to construct many trees very easily by taking
random samples from the dataset. The samples can be as large as 90%
of the training data. Small dataset problems, which need methods like
bootstrapping, are not relevant for large datasets.

R was used for the analysis and the sample size was limited to 250,000
cases. For each tree, 500,000 cases were sampled and split into two equal
sets, one for training, and one for testing. In all, 200 trees were ﬁt to
the training data. The generation of a single tree took approximately 20
seconds so the construction of forests even for large datasets is just a
matter of minutes.

In order to analyse the trees as a group, “forest-data” consisting of in-
formation and statistics for each inner node in every tree were calculated.
The information included the name of the tree, the node ID,5 the variable
used for the split in the node, the number of cases of the test set falling
into that node, and the deviance gain of the node based on the test set.
Interactive visualization tools can be used to evaluate these data.
5 In a full binary tree, the number of nodes in each level is ﬁxed, therefore it is
possible to give each node a unique ID, usually starting from the root, then left
to right at each level. Every binary tree can be seen as a pruned full binary
tree. Therefore, it is possible to deﬁne unique node IDs for every binary tree. R
produces binary trees.

9.4 Forests for Large Datasets

199

value

age

m5g

e99

marst

emd

stp

age

value

m5g

marst

e99

emd

stp

Fig. 9.9. Use of variables. Barchart of the frequency of variables (left). Weighted
barchart of the variables used with deviance gain as weight (right). Highlighting
corresponds to the ﬁrst two splits in a tree.

First, take a closer look at the variables used. The left plot in Fig-
ure 9.9 shows a barchart of how often variables were used. The height of
each bar corresponds to the number of nodes that contained a rule featur-
ing the corresponding variable. The highlighted part corresponds to the
ﬁrst two splits of a tree. It is evident from the plot that value was the
most frequently used variable, followed by age, migrat5g, and educ99.
This plot does not necessarily show the importance of each variable. If
a variable is used quite often for local partitioning of a few cases in a late
split, then its frequency will be high, but not its importance. A weighted
barchart with deviance gain as weight, as shown in the right plot of Fig-
ure 9.9, displays the relative importance of variables better. From that
plot, it can be concluded that age explains more information contained
in the data than value, although it is not used as frequently. Migration
appears to be quite important, although it is used more in lower splits as
the highlighting shows.

Both plots display aggregated information obtained from all trees. An-
other interesting question is how different the generated trees are. In or-
der to answer that question all splits should be visualized. One way to
do so is to use a “Tetris plot” as shown in Figure 9.10. Each coloured box
corresponds to one inner node, and each splitting variable has a speciﬁc
colour. The plot reveals that the trees are very similar for the ﬁrst three
levels. Even further down the tree, their differences are rather in the or-
der of the variables used, not in their type.

The usage of variables in each tree can be checked using a ﬂuctuation
diagram of trees and variables weighted by deviance gain (Figure 9.11).
The plot conﬁrms that the trees are very similar. This plot would show
differences in the behaviour of variables across trees if there were any.

200

9 Trees

26

24

22

20

18

16

14

12

10

7

4

2

fle

b05

b06

b12

b02

b18

b08

b04

b19

b09

b10

b13

b07

b11

b03

b20

b14

b01

b15

b16

b17

Fig. 9.10. “Tetris” plot. Each rectangle corresponds to a node. Trees are plotted on
the X axis, node IDs on the Y axis. Each colour represents one variable.

If the structure of the trees appears similar, then it is likely that the
performance of the trees on training data will also be similar. This can
be checked by looking at the misclassiﬁed cases. 250,000 test cases that
were not present in any training set have been passed down all generated
trees. Two plots in Figure 9.12 summarize the results and conﬁrm the
supposition.

The left plot shows how often each case was misclassiﬁed. The left-
most bar corresponds to zero, hence it consists of cases that were always
correctly classiﬁed. The rightmost bar consists of cases that were always
misclassiﬁed. The sharp separation is very unusual for a forest of trees for
small data. Usually there are many cases misclassiﬁed a couple of times,
and cases that are always misclassiﬁed are rare. The plots show that an
improvement of the model by aggregation cannot be achieved.

Cases having a mortgage are highlighted in the plot. By looking at the
highlighting in the rightmost bar, it is obvious that the models tend to
misclassify cases having no mortgage far more often. This can be veriﬁed
easily by plotting bars for misclassiﬁed cases in each tree as in the right
plot of Figure 9.12. The total misclassiﬁcation rate of the trees varies only
slightly, the misclassiﬁcation rate of the individual classes shows no big
variation either.

Another 200 trees were grown, but they only conﬁrmed that the trees
based on this large dataset are very stable, and their accuracy cannot
be enhanced by aggregation methods. All the proposed plots scale well

9.4 Forests for Large Datasets

201

mrt

emd

stp

e99

m5g

vle

age

fle

b05

b06

b12

b02

b18

b08

b04

b19

b09

b10

b13

b07

b11

b03

b20

b14

b01

b15

b16

b17

Fig. 9.11. Weighted ﬂuctuation diagram of trees (x-axis) and variables (y-axis)
with deviance gain as weight.

for large datasets and all but three (the “Tetris” plot, the tree-variable
ﬂuctuation diagram, and the misclassiﬁcation plot) are not dependent on
the number of trees. For these three plots, 21 trees have been displayed
for illustration. The plots are useful for up to about 200 trees. None of the
large datasets analysed so far have produced sufﬁciently different trees
to warrant growing more. On the contrary, the datasets that beneﬁted
most from large forests were only of several hundred cases.

110000

100000

90000

80000

70000

60000

50000

40000

30000

20000

10000

0

fle

b01 b02 b03 b04 b05 b06 b07 b08 b09 b10 b11 b12 b13 b14 b15 b16 b17 b18 b19 b20

Fig. 9.12. Histogram of the number of models misclassifying a case (left). The
misclassiﬁcation plot (right) consists of bars representing misclassiﬁed cases for
each tree. The cases having a mortgage are highlighted (green) in both plots.

202

9 Trees

9.5 Summary

Trees are very useful for both exploratory and predictive tasks. In theory,
tree models can be applied to large datasets as well as to small. In prac-
tice, the freely available software is not yet suitable for generating trees
for very large datasets, but some specialized commercial packages prove
that it is possible. Modiﬁcation of the existing code-base to support large
datasets and incorporating parallel processing should not be too demand-
ing, but it still needs to be done. Effective tree visualization is dependent
on having efﬁcient and fast model-ﬁtting algorithms.

Some implementation techniques, aimed especially at faster construc-
tion of trees, have been considered by researchers in Data Mining as dis-
cussed by Gehrke et al. (2000).

Visualization of large hierarchical structures has been a research topic
in computer science for quite a while. Unfortunately, little has been done
so far for statistical trees. Large datasets do not necessarily lead to large
trees, but several issues arise when combining large datasets and trees
of unlimited size. Interactive methods can be used to help to solve some
of the problems.

A statistical tree is not just a hierarchical structure, but can be also
viewed from other aspects. This chapter has discussed the behaviour and
scalability of several alternative visualization methods such as sectioned
scatterplots, ﬂuctuation diagrams, treemaps and spineplots of leaves for
large datasets.

Large forests of trees can be grown to assess the stability of individual
trees, to estimate the importance of individual variables, and to improve
the prediction power of the model. Several visualization tools have been
described that help to understand the behaviour of the trees and to get
more information from datasets.

10

Transactions

B ´arbara Gonz ´alez-Ar ´evalo, F ´elix Hern ´andez-Campos, Steve Marron,
and Cheolwoo Park

’Cause there’s a million ways to go, you know that there are. . .

Cat Stevens, If you want to sing out, sing out

10.1 Introduction and Background

The area of internet trafﬁc measurement and modelling has a pressing
need for novel and creative visualization ideas. The issues and the data
are both complex, yet few researchers in the area (with some notable ex-
ceptions) are aware of the power of visualization for addressing the prob-
lems and understanding complicated behaviour.

The internet shares some similarities with the telephone network.
Both are gigantic, worldwide networks for the transmission of informa-
tion. Both share the notion of “connection”, generally between two points.
For this reason, the ﬁrst models for internet trafﬁc were based on stan-
dard queueing theory, with assumption of Poisson arrival of connections,
and of exponentially distributed times of connection duration.

A large body of exciting work during the 1990s revealed that these
assumptions were grossly inadequate, and far different models were usu-
ally much more appropriate. In particular, duration distributions exhibit
heavy tails (caused by both far shorter and also far longer connections
than are typically found in telephone trafﬁc), and time series of aggre-
gated trafﬁc exhibit bursty behaviour and long range dependence. An
elegant mathematical theory demonstrating how heavy tail durations
can lead to long range dependence was developed by Mandelbrot (1969),
Cox (1984), Taqqu and Levy (1986), Leland et al. (1994), Crovella and
Bestavros (1996), Heath et al. (1998), and Resnick and Samorodnitsky
(1999).

This theory is deep and compelling and gives good descriptions of ob-
served behaviour in a wide range of circumstances. However, there has
been recent controversy at several points.

204

10 Transactions

One controversial point has been the issue of the heaviness of tails.
Downey (2000) suggests that the Log Normal (not heavy tailed in the
classical sense) can ﬁt duration distributions as well as classical heavy
tail distributions and gives some interesting physical motivation for this
distribution as well. However, by developing the nice idea of tail fragility,
Gong et al. (2001) showed that both types of distribution can give ap-
parently reasonable ﬁts. This general direction was further developed by
Hern ´andez-Campos et al. (2002) using much larger data sets (in the mil-
lions), together with a novel visualization for understanding the level of
sample variation. This latter work showed that a mixture of three Double
Pareto Log Normal distributions (Reed and Jorgensen; 2004) gave an ex-
cellent ﬁt and was also physically interpretable. These results motivated
the development of the concept of variable heavy tails.

Another point of controversy has been the issue of long range depen-
dence. This is currently widely accepted (and intuitively sensible), but
some interesting questions have been raised (using some novel visual-
ization ideas) by Cao, Cleveland, Lin and Sun (2001, 2002a,b,c).1 The
key idea is that aggregated trafﬁc, of the type typically found at ma-
jor internet nodes, tends to wash out long range dependence. The idea
is theoretically justiﬁed by appealing to limit theorems for aggregated
point processes, and supported by recent measurement studies that ex-
amined high-capacity backbone links, see Zhang et al. (2003) and Kara-
giannis et al. (2004). An example, where both types of behaviour were
observed, depending on scale, was studied using some different visualiza-
tions, by Hannig et al. (2001). An interesting issue to follow in the future
will be the state of this balance between long range dependence caused
by relatively few but extremely large transmissions, and a more Poisson
type probability structure caused by aggregation. Cao, Cleveland, Lin
and Sun (2001, 2002a,b,c) predict ultimate Poisson type structure, for the
good reason that internet trafﬁc is continually increasing. However, this
is based on an assumption that the distribution of sizes of transmissions
will stay ﬁxed, which seems questionable.

Downey (2001) questioned long range dependence from a different
viewpoint, by showing that duration distributions may not be very con-
sistent with the deﬁnition of heavy tailed, in the classical asymptotic
sense. This was the ﬁrst observation of variable heavy tails, as deﬁned
in Hern ´andez-Campos et al. (2002). That paper goes on to develop an
asymptotic theory that parallels the classical theory. In particular it is
seen that long range dependence still follows from the far broader (and
more realistic in terms of the nature of the data) concept of variable heavy
tails.
1 For a collection of papers on internet trafﬁc modelling, see http://cm.

bell-labs.com/cm/ms/departments/sia/wsc/webpapers.html.

10.2 Mice and Elephant Plots and Random Sampling

205

This paper points out some challenging visualization problems and

offers approaches to their solution.

The ﬁrst main problem is related to the Mice and Elephants graphic,
developed in Marron et al. (2002), discussed in Section 10.2. The prob-
lem is how to choose a representative sample, and it is seen that the
usual device of random sampling is clearly inappropriate. In Section 10.3,
two different biased sampling approaches to this problem are proposed. A
quite different approach to visualizing this large and complex population,
based on studying quantile windows, is shown to reveal other interesting
structure in the data in Section 10.4. This work on ﬂow sampling for visu-
alization complements existing ideas developed in the context of sampled
trafﬁc monitoring. Recent work in this area, Dufﬁeld and Lund (2003)
and Hohn and Veitch (2003), has shown that ﬂow sampling provides a
more accurate view of internet trafﬁc than packet sampling. In particu-
lar, Hohn and Veitch have shown that ﬂow sampling preserves long range
dependence.

The second main problem is motivated by an apparent “commonality
of ﬂow rates”, discussed in Section 10.5. A large scatterplot seems to re-
veal interesting visual structure that makes physical sense. The question
is how to best understand the driving phenomena.

10.2 Mice and Elephant Plots and Random Sampling

The Mice and Elephants plot is a visualization that illustrates the fun-
damental theory discussed in Section 10.1. In particular, it shows how a
heavy tailed distribution can lead to long range dependence. An exam-
ple is shown in Figure 10.1. The key idea is that internet ﬂows, i.e., the
set of packets that make up a single connection, are represented by line
segments. The left (right) ends of the line segments show the times of
the ﬁrst (last) packets in each ﬂow. Thus, each line segment represents
the overall time of activity of that ﬂow. For good visual separation of the
line segments, the data have been jittered by adding a random height on
the vertical axis. This is in contrast to the common packet arrival time
vs. address plots commonly used for trafﬁc anomaly detection, as in Cho
(2001).

The data here were HTTP (Web browsing) response times. They were
collected during a four hour period, 8:00 AM to 12:00 noon, on a Sunday
morning in April 2001 at the University of North Carolina (UNC). This
time period was chosen to represent a light trafﬁc time. For a parallel
analysis of a heavy trafﬁc time, see Marron et al. (2002). More detailed
graphics for both analyses are available at the web address: http://
www.cs.unc.edu/Research/dirt/proj/marron/MiceElephants/.
For more details on the data collection and processing methods, see
Smith et al. (2001).

206

10 Transactions

1

0.8

0.6

0.4

0.2

i

t
h
g
e
H
m
o
d
n
a
R

0

0

2000

4000

6000

8000

10000

12000

14000

time (sec)

Fig. 10.1. Mice and Elephants plot for a full four-hour time block. Vertical bars
indicate the 15-minute time window shown in Figure 10.2. This suggests that all
ﬂows are “mice”.

The total number of ﬂows for the time period in Figure 10.1 was
1,070,545. Massive overplotting resulted from an attempt to plot all of
them. A simple and natural approach to the overplotting problem is to
plot only a random subsample. This was done for a subsample size of
5,000 (chosen for good visual effect) in Figure 10.1, and in the other ﬁg-
ures in this section.

Figure 10.1 shows steadily increasing trafﬁc, which is the expected be-
haviour on Sunday mornings (perhaps the times at which students begin
web browsing is driven by a wide range of adventures experienced on the
previous night!). It also suggests that there are no long ﬂows, with the
longest visible ﬂow being less than 5 minutes. This is a serious misim-
pression, which completely obscures the most important property of the
trafﬁc.

This point becomes clear from a similar graphic, zoomed into the re-
gion between the vertical bars in Figure 10.1, which represents the cen-
tral 15 minutes (1/16th of the total time). Figure 10.2 shows this zoomed
mice and elephants plot. There were 59,113 (not far from 1,070,545 / 16)
ﬂows that intersected this time range. Plotting all would again result in
severe overplotting, so only a random sample of 5,000 is plotted.

The visual impression of Figure 10.2 is far different from that of Fig-
ure 10.1. In particular, there are a number of ﬂows that cross the full

 
10.2 Mice and Elephant Plots and Random Sampling

207

i

t
h
g
e
H
m
o
d
n
a
R

1

0.8

0.6

0.4

0.2

0

6800

6900

7000

7100

7200
time (sec)

7300

7400

7500

7600

Fig. 10.2. Mice and Elephants plot for a 15-minute time block. Vertical bars indi-
cate the time span containing the 5,000 ﬂows, shown in Figure 10.3. This shows
both “mice” and “elephants”.

15-minute interval, which seems quite contrary to the visual impression
of Figure 10.1 — where all ﬂows appeared were much less than 5 minutes
in duration. This misimpression is caused by a combination of the heavy
tailed duration distribution and the random sampling process. Because of
the heavy tails, there are only a very few ﬂows that are very long. These
have only a small chance of appearing in the randomly selected sample.
For example, the chance that any of the biggest 40 ﬂows have a chance of
appearing is only about (40 · 5, 000/1, 070, 545) ≈ 0.19. The number 40 is
relevant, because 38 ﬂows extend the full length of the central one hour
time interval. This small probability of inclusion explains why none of
these very long ﬂows appears in Figure 10.1.

It is interesting to zoom in once again. Figure 10.3 shows the results
of repeating the visualization for the region between the vertical bars in
Figure 10.2. Those bars do not show 1/16th of the region in Figure 10.2,
because that contains less than 5,000 ﬂows (which would give an inconsis-
tent visual representation). Instead, the bars are chosen so that exactly
5,000 ﬂows intersect the time interval (which is again centered in the
range of the data), which is about 1.3 minutes long.

Figure 10.3 shows a rather large number of long ﬂows, and, because
there is no sampling, is representative of behaviour at a given time. How-
ever, this view is also biased because in some sense it shows too high a

 
208

10 Transactions

i

t
h
g
e
H
m
o
d
n
a
R

1

0.8

0.6

0.4

0.2

0

7170

7180

7190

7200
time (sec)

7210

7220

7230

Fig. 10.3. Mice and Elephants plot for time window containing 5,000 ﬂows.

proportion of long ﬂows. The reason is a length biasing type of effect: long
ﬂows have a much greater chance of appearing in any such small interval,
yet, as noted above they are a very small fraction of the population.

The clear conclusion from Figures 10.1, 10.2, and 10.3 stands in stark
contrast to one of the most time-honored principles of statistics (and a
commonly used tool in visualization): simple random sampling of these
data does not give a representative sample. Again, this problem is caused
by the heavy tails of the duration distribution of internet connections, and
there is a general principle at work: simple random sampling will never
give a representative sample in heavy tail situations.

The ﬁrst open problem proposed in this paper is to ﬁnd an improved
version of a representative sample. A sensible ﬁrst step may be to de-
cide what that means. Is there a reasonable mathematical deﬁnition
that makes sense for heavy tailed distributions? Can classical length bi-
ased sampling ideas perhaps be useful? Two biased sampling approaches
to these problems are given in Section 10.3. The ﬁrst approach essen-
tially considers a wide range of zooming window views of the data, of
which Figures 10.1, 10.2, and 10.3 are examples, and uses probabilities
of appearance in the window to assign sampling weights, as discussed in
Section 10.3.1. The second approach assigns weights using the Box–Cox
transformation of the data, with details appearing in Section 10.3.2.

Figures 10.1, 10.2, and 10.3 show that the name Mice and Elephants
is sensible for this graphic. It has become commonplace terminology in

 
10.2 Mice and Elephant Plots and Random Sampling

209

the internet research community for this phenomenon of a very few, very
large ﬂows. The concept is fundamental to the ideas outlined in Sec-
tion 10.1. It is a clear consequence of the heavy tail duration distributions.
It also makes the long range dependence in the aggregated time series vi-
sually clear. In particular, time series of binned trafﬁc measures (such as
packet counts) are essentially vertical sums of the line segments in the
mice and elephants plots. The theory described above about heavy tails
implying long range dependence is visually clear, given that the very long
elephant ﬂows clearly persist over long time ranges. It is not surprising
that the persistence of the elephants results in the often observed bursty
behaviour of internet trafﬁc.

Another interesting open problem is to use this visualization to mo-
tivate new quantitative measures for understanding the nature of this
type of data. The standard notions of heavy tails for the duration distri-
butions, and of time series dependence, are not designed for describing
the full structure of these data. Instead they are just tools adapted from
other areas, which perhaps result in a somewhat clumsy statistical anal-
ysis. Can the quantitative analysis be sharpened by quantifying other
aspects of the full plot?

Mice and elephants visualizations also demonstrate clearly that stan-
dard queueing theory models, with exponential duration distributions,
are grossly inappropriate. This is seen in Figure 10.4, which is a dupli-
cate of Figure 10.3, but for simulated data with exponential distributions.
To keep the comparison as fair as possible, the real data time range, sam-
ple sizes and even start times are used. Only the duration of each ﬂow
(the length of the line segment) is simulated. The exponential parameter
was chosen to give a population mean that was the same as the sample
mean for the real data.

Figure 10.4 shows a completely different type of distribution of ﬂow
lengths from the real data shown in Figure 10.3. In particular, there are
no ﬂows that are nearly long enough to cover the whole interval, the num-
ber of very short ﬂows is far fewer, and there are many more “medium
size” ﬂows. This is a consequence of the “light tail” property of the ex-
ponential distribution. Once the mean is speciﬁed, there are constraints
on the frequencies of very large and very small observations. These con-
straints make the exponential distribution a poor approximation to the
type of behaviour seen in Figures 10.1, 10.2, and 10.3. These mice and
elephants plots support the conclusion from Figure 10.1 that classical
queueing models are inappropriate for internet trafﬁc. In addition, the
mice and elephants plot in Figure 10.4 seems consistent with the idea
that, when this trafﬁc is vertically aggregated, the resulting time series
exhibit only classical short range dependence.

The problem proposed above of how to subsample for effective mice
and elephants visualization should not be regarded as “one off”. The in-
ternet is constantly changing in many ways, and this could become a stan-

210

10 Transactions

i

t
h
g
e
H
m
o
d
n
a
R

1

0.8

0.6

0.4

0.2

0

7170

7180

7190

7200
time (sec)

7210

7220

7230

Fig. 10.4. Mice and Elephants plot for simulated exponentials, in setting of Fig-
ure 10.3.

dard tool for monitoring change. For example, monitoring could help to
resolve the controversy as to whether large-scale aggregation will even-
tually swamp out long range dependence effects or whether the latter will
continue with the continuing growth of elephants in frequency and size.
An effective solution might also extend well beyond internet trafﬁc, and
might provide the beginnings of a new theory of sampling in heavy tail
contexts.

10.3 Biased Sampling

In this section, two biased sampling methods are proposed, which gen-
erate samples that give a better visual impression of the nature of this
complex population. The ﬁrst is based on windowed biased sampling.
The second takes a quite different Box–Cox biased sampling approach.
Both approaches have connections to classical length biased ideas but
are adapted to the present special setting.

Both approaches provide a visualization over the full time interval, as
shown in Figure 10.1, involving a non-uniform random sample of the full
set of ﬂows. But each involves construction of a weighting scheme, that
gives the elephants an appropriate probability of appearing.

 
In this section, only responses with nonzero duration are considered.

The number of these responses is N = 382127.

10.3 Biased Sampling

211

10.3.1 Windowed Biased Sampling

Probability weights are chosen to mimic the chance of appearing in a
window that is the right size among a succession of zooming windows.
Figures 10.1, 10.2, and 10.3 are members of this sequence of zooming
windows.

Figure 10.5 shows the result of the biased sampling method of this
section. It shows nearly 5,000 (actually 4834) HTTP responses, which are
drawn in a way that gives a much clearer impression of the Mice and
Elephants nature of the dataset.

Notation for making this precise, which allows straightforward gener-
alization to other contexts, is now introduced. Let L denote the total time
period (4 hours for these data, as seen in Figure 10.1), and let x and d
be the starting time and duration of each HTTP response, i.e., x is the
left endpoint and x + d the right endpoint of each line segment. Let N

4834 Mice & Elephants Plot (l=189.6157),14400 sec

i

t
h
g
e
H
m
o
d
n
a
R

1

0.9

0.8

0.7

0.6

0.5

0.4

0.3

0.2

0.1

0

0

2000

4000

6000

8000

10000

12000

14000

time (sec)

Fig. 10.5. Windowed Biased Sampling of Sunday morning HTTP Response data.
Shows both, mice and elephants.

 
212

10 Transactions

denote the total number of HTTP responses. Then the density of the data
is δ = N
L . Figure 10.1 shows that the density of the data is clearly not con-
stant over time (there is a deﬁnite increasing trend), so δ should really be
viewed as the average density.

Let n denote the number of responses desired to appear in the ﬁnal
full time scale visualization (taken to be 5,000 in Figures 10.1, 10.2, and
10.3). Let l be a candidate subwindow size (i.e., l indexes a zooming family
of windows). An interesting view over a wide range of values of l is avail-
able in the Windowed Biased Sampling section of the webpage Gonz ´alez-
Ar´evalo et al. (2004).

An appropriate choice of l will give a good subwindow approximation

of the overall average data density δ. Thus, it makes sense to use l = n
δ .

The HTTP responses that appear in the ﬁnal full time span visual-
ization — shown in Figure 10.5 — are chosen with a weighted random
sampling scheme, where the weights are chosen to reﬂect the probability
that the given ﬂow appears in a window of length l.

To calculate these weights, consider a point U chosen at random from
the interval [0, L − l]. Then all the responses in the interval [U, U + l] could
be taken as the sample. In this case, the sample size will be close to n. But
this sample has the drawback that it does not cover the full time range
[0, L]. To cover the full range, a weighted random sampling scheme has
been devised as follows.

Because some responses begin before time 0, or ﬁnish after time L,
weights are recommended that depend on whether or not the response
was fully captured, meaning that all data packets were transfered, within
the interval [0, L]. HTTP responses that had some of their data trans-
ferred either before the starting time or after the ending time, are called
censored.

First weights are assigned to the fully captured responses. The re-
sponse is modelled as having a random start time X, assumed to be
uniformly distributed on [0, L − d]. Let p(d, l) be the probability that an
observation, with duration d, intersects the random window [U, U + l].
Let g(x, d, l) be the conditional probability that an observation is selected
given that its starting time is x, its duration is d, for the window width l.
Let f (x) = 1
L−d be the probability density function of X. Then

g(x, d, l) = P r(U ∈ [x − l, x + d])

(10.1)

=

min(x + d, L − l) − max(x − l, 0)
L − l

.

Averaging this over x values, i.e. taking expectation over X, gives an
approximate probability that a randomly chosen response intersects the
window [U, U + l],

10.3 Biased Sampling

213

(cid:7) L−d

p(d, l) = Eg (X, d, l) =

g(x, d, l)f (x)dx

(cid:9)

(cid:5)

= max

1 −

(cid:6) (cid:5)

0

1 − l

L − d

1 − d
L − l

(cid:6)

(cid:20)

, 0

,

(10.2)

which is used as the weight for random selection of responses.

Second weights are assigned to the censored responses. A similar cal-
(cid:9)

culation gives

(cid:20)

p(d, l) = min

, 1

.

(10.3)

d
L − l

Note that any ﬂow with duration at least L−l will have probability one
of being in the sample. Thus, all 38 HTTP responses that cover essentially
the full 4-hour time interval appear in Figure 10.5.

So, for ﬁxed l and L each observation can be chosen with probability
p(d, l) given in (10.2) and (10.3). This will give a sample that spans the
whole time interval, but that gives a higher probability to the elephants.
A possible drawback of this method is that the size of the sample is ran-
dom, and depends on l, although it will be close to n = lδ.

When a sample of exactly size n is required, the following can be done:

1. Start with a larger window, with width l = n
0.8×δ .
2. Choose each observation with probability p (d, l).
3. From this larger sample, choose a random sub-sample of size n.

Note that the number 0.8 is arbitrary, and intended to guarantee that
there are at least n points in the sample. However, care should be taken,
in the choice of this scale factor, to ensure that the original sampling
scheme produces a sample not much larger than the desired n. Other-
wise, the subsequent random sampling will tend to reproduce the effect
that the procedure is trying to avoid: random sampling downweights the
elephants.

10.3.2 Box–Cox Biased Sampling

As discussed in Section 10.2, random sampling does not provide a useful
visualization of durations of HTTP responses because of the heavy-tail of
the duration distribution. Here, a biased sampling approach based upon
transformations is considered. In this section, the censored observations
are handled differently, this time by simply ignoring whether or not re-
sponses extend beyond the range [0, L] .

The starting point of this approach to bias sampling is to represent
simple random sampling in terms of the Complementary Cumulative Dis-
tribution Function (CCDF), ¯F (d) = P {D > d} of the duration D. Simu-
lated values can be drawn by generating Uniform (0,1) realizations, U ,

214

10 Transactions

(a)

0

(cid:239)1

(cid:239)2

(cid:239)3

(cid:239)4

(cid:239)5

)
F
(cid:239)
1
(
0
1
g
o

l

1

0.9

0.8

0.7

0.6

0.5

0.4

0.3

0.2

0.1

i

t
h
g
e
H
m
o
d
n
a
R

(cid:239)4

(cid:239)3

(cid:239)2

(cid:239)1

0
1
log10(duration)

2

3

4

(b)

0

0

2000

4000

6000

8000
time (sec)

10000

12000

14000

Fig. 10.6. (a) Log-log transformed CCDF, showing how Uniform sampling will
put more weight on larger responses. (b) Corresponding Mice and Elephants plot
shows too much visual emphasis on the elephants.

and then taking D = ¯F −1(U ). Transformations of ¯F will generate ap-
propriate biased samples. The ﬁrst example of this, based on a log-log
transformation, is shown in Figure 10.6(a).

The horizontal axis in Figure 10.6 (a) shows the logarithm to base 10
of the duration, and the vertical axis is the logarithm to base 10 of the
CCDF of the duration. This curve drives the sampling procedure as fol-
lows. First, select a random number U ∈ [log10 (1/N ) , 0] from the vertical
axis and sample a corresponding response by choosing the maximum of
the set

{di : log10 ¯F (di) ≥ U },

(10.4)

 
10.4 Quantile Window Sampling

215

where di,
i = 1, 2, . . . , N , represent the durations of the nonzero re-
sponses. Second, select another random number from the vertical axis
and choose a corresponding response by (10.4). If the selected response
is already in the sample, reject it and repeat the random sampling. Re-
peating these steps until there are 5,000 responses completes the sample.
Figure 10.6(b) shows a Mice and Elephants plot of such a sample.

Figure 10.6(b) shows too many elephants because the longer responses
have a much higher probability of being chosen, because the log transfor-
mation puts very large weight there. This is the opposite of random sam-
pling which obscured the elephants, because the untransformed CCDF
put too little weight on them.

A family of compromises between these extremes is a sampling method
based on the Box–Cox family of transformations (Box and Cox; 1964) of
the CCDF of the durations. This family of transformations is deﬁned as

G(d) =

¯F λ(d) − 1
λ log 10

,

0 ≤ λ ≤ 1.

(10.5)

The sampling procedure, after transforming the CCDF by (10.5), is the
same as above. Note that, if λ = 0, the sampling is the same as the one
with a log10 transformation, and if λ = 1, the sampling is consistent with
random sampling. The results of applying one member of this family of
transformations is shown in Figure 10.7.

Figure 10.7(a) shows the transformed CCDF of the duration with
λ = 0.6. The horizontal axis is still the log10 of the duration. This shows
that this Box–Cox transformation applies more weight to the intermedi-
ate size responses than to the elephants, compared to the log10 transfor-
mation.

Figure 10.7(b) shows the corresponding Mice and Elephants plot of the
selected 5,000 responses sampled using the transformed CCDF in Fig-
ure 10.7(a). Several very long elephants appear, but they are fewer than
in Figure 10.7(b) and the picture keeps many medium-sized responses.

The choice of λ = 0.6 was made on the basis of visual impression. Sim-
ilar views, for a wide range of λ values, are available in a movie, which
is accessible in the Box–Cox Biased Sampling section of the webpage
Gonz ´alez-Ar´evalo et al. (2004). The movie shows an increasing number
of elephants in the plots as λ decreases from 1 to 0. The general choice of
λ is an interesting open problem.

10.4 Quantile Window Sampling

Quantile window sampling provides a completely different view of the
HTTP responses. The main idea is to display the HTTP responses grouped
according to their lengths of duration. This visualization enables us to fo-
cus on the structure of various subgroups of the mice and elephants that

216

10 Transactions

(a)

F
(cid:239)
1

f

o

n
o
i
t
a
m
r
o
f
s
n
a
r
T

0

(cid:239)0.1

(cid:239)0.2

(cid:239)0.3

(cid:239)0.4

(cid:239)0.5

(cid:239)0.6

(cid:239)0.7

1

0.9

0.8

0.7

0.6

0.5

0.4

0.3

0.2

0.1

i

t
h
g
e
H
m
o
d
n
a
R

(cid:239)4

(cid:239)3

(cid:239)2

(cid:239)1

0
1
log10(duration)

2

3

4

(b)

0

0

2000

4000

6000

8000
time (sec)

10000

12000

14000

Fig. 10.7. (a) Box–Cox λ = 0.6 transformed CCDF, showing how Uniform sam-
pling will distribute weights among response durations. (b) Corresponding Mice
and Elephants plot shows improved visual weighting.

are similar in duration. The population of responses is divided into con-
secutive subsets of size 5,000, according to duration. That is, the longest
5,000 responses are displayed, the next longest 5,000 responses and so
on. It is interesting to study the succession of these displays. A movie
of them can be found in the Quantile Window Sampling section of the
webpage Gonz ´alez-Ar´evalo et al. (2004).

Figure 10.8 shows two such displays at the elephant end of the scale.
Figure 10.8(a) shows the biggest 5,000 elephants of the population.
As expected, the visual impression is dominated by the long elephants
crossing over most of the full four-hour time block. An interesting fact
is that this group of responses contains a lot of mice as well. To investi-

 
 
 
10.4 Quantile Window Sampling

217

(a)

1

0.9

0.8

0.7

0.6

0.5

0.4

0.3

0.2

0.1

t

i

h
g
e
H
m
o
d
n
a
R

0

0

2000

4000

6000

8000
time (sec)

10000

12000

14000

(b)

1

0.9

0.8

0.7

0.6

0.5

0.4

0.3

0.2

0.1

i

t
h
g
e
H
m
o
d
n
a
R

0

0

2000

4000

6000

8000
time (sec)

10000

12000

14000

Fig. 10.8. For the same Sunday morning HTTP responses: (a) The 5,000 biggest
elephants. (b) The biggest 50 Elephants are removed and the next biggest 5,000
Elephants are displayed.

 
 
218

10 Transactions

gate this point further, the biggest 50 elephants were thrown out and the
next biggest 5,000 elephants selected from the population. Figure 10.8(b)
visualizes this sample. Only removing the biggest 50 elephants dramati-
cally alters the visual impression, with now only medium-sized and short
responses appearing. This provides a better view of other aspects of the
population, including the fact that trafﬁc level increases as the morning
progresses, i.e., from left to right.

Figure 10.9 shows some lower quantile windows, chosen because they

revealed some unexpected data artifacts.

Figure 10.9(a) shows 5,000 responses with durations from a minimum
of 0.2146 to a maximum of 0.2262 (seconds). Basically, the responses
shown in this ﬁgure have very similar duration lengths. An unexpected
feature in this plot are some high-density vertical strips, representing
bursts of responses of this duration at particular times. The biggest such
burst appears around 9,500 (seconds) and that region is marked by two
vertical lines. More bursts in terms of the starting times are shown in
Figure 10.9 (b). This plot shows 5,000 responses with durations from a
minimum of 0.6293 to a maximum of 0.7510 seconds. The biggest such
vertical strip is observed around 8,000 (seconds) and that region is also
marked by two vertical lines.

Insights into the causes of these bursts come from zooming in on the
region between the red bars, and enhancing the visualization, as done
in Figure 10.10. Additional useful information for understanding the
causes of these bursts is the size of each HTTP response. Hence, in Fig-
ure 10.10, instead of using a random vertical height for separation, the
size (in bytes) is used as the vertical axis.

The top panel of Figure 10.10(a) contains only the responses within
the two vertical lines in Figure 10.9(a). Three big clusters are observed,
with quite small response sizes and these are enclosed by a box. A further
zoomed plot within this box is shown in the lower panel of Figure 10.10(a).
Around 9,400, 9,410, and 9,430 (seconds), several small size responses are
transferred practically at the same time, which creates the vertical strip
that is seen in Figure 10.9(a). Deeper investigation revealed that these re-
sponses were composed of two packets and came from a common server,
suggesting the download of a number of small webpage components, such
as embedded thumbnail images. The three clusters have a timing that
suggests they represent three such webpages. Usually such transfers in-
volve single packets, and thus are not highlighted in the current anal-
ysis, because single packet responses have 0 duration. The reason that
these responses come as two packets appears to be that the server sent
the header of the response object in one packet, and then, after some ex-
tra processing, sent the actual data. HTTP attaches an application-level
header to each response, and it seems that the particular server sending
those responses is splitting header and data and also forcing TCP to send
the header as soon as it is ready. This uncommon behaviour has some per-

10.4 Quantile Window Sampling

219

(a)

1

0.9

0.8

0.7

0.6

0.5

0.4

0.3

0.2

0.1

i

t
h
g
e
H
m
o
d
n
a
R

0

0

2000

4000

6000

8000
time (sec)

10000

12000

14000

(b)

1

0.9

0.8

0.7

0.6

0.5

0.4

0.3

0.2

0.1

i

t
h
g
e
H
m
o
d
n
a
R

0

0

2000

4000

6000

8000
time (sec)

10000

12000

14000

Fig. 10.9. Two plots displaying different quantiles of the population. Both show
some vertical bursts in terms of starting times.

 
 
220

10 Transactions

4
x 10

(a)

5
x 10

3

(b)

2.5

2

e
z
s

i

1.5

1

0.5

8

7

6

5

4

3

2

1

e
z
s

i

0
9300

9350

9400
start time

9450

9500

0
7950

8000

8050
start time

8100

8150

3000

2500

2000

e
z
s

i

1500

1000

500

4
x 10

10

e
z
s

i

9

8

7

6

5

4

3

2

1

0

9380

9400
9420
start time

9440

0
8000

8020

8040
start time

8060

8080

Fig. 10.10. The burst phenomena within two vertical lines in Figure 10.9 are fur-
ther investigated by zooming in on the highlighted regions. The vertical axis in
these plots is the size of HTTP response, which aids the analysis. The left col-
umn shows zooms of Figure 10.9(a), and the right column shows zooms of Fig-
ure 10.9(b). The bottom row is a further zoom in on the rectangles drawn in the top
row.

10.5 Commonality of Flow Rates

221

formance beneﬁts. The main beneﬁt is that the client can start processing
the header right away, rather than waiting for the header plus the object
to arrive, slightly reducing the delay perceived by the user.

The top panel of Figure 10.10(b) shows another type of burst. This plot
contains only the responses within the two vertical lines in Figure 10.9(b).
This burst of HTTP responses is far different from the burst of embedded
small objects discovered in Figure 10.10(a). This time, it is seen that the
burst of responses all have essentially the same size. This strong similar-
ity of size is conﬁrmed by zooming in on the rectangular box, as shown in
the lower panel. These responses are large enough to be sent as multiple
packets. Deeper investigation showed that these all came from the same
server, which was an internet game site. These appear to be a sequence
of updates of game states, which explains the common size.

10.5 Commonality of Flow Rates

Another interesting view of the HTTP response data analysed in Sec-
tion 10.2 is a scatterplot of the duration of each response against the
size of the response in bytes (i.e., the amount of data transferred). Both
variables share the heavy tailed mice and elephants behaviour demon-
strated in Figures 10.1-10.3, so a reasonable view of the data comes from
plotting both variables on the log scale. Figure 10.11 shows the resulting
scatterplot. This requires special handling of responses with 0 duration
(for instance for single packet responses) and they were dropped from the
sample, which resulted in the 382,127 responses appearing in the scat-
terplot.

The general tendency in Figure 10.11 is roughly what one might ex-
pect: larger size responses need more time, so there is a general upward
trend. Horizontal lines at the bottom of the plot reﬂect discreteness
of very small time measurements. An initially surprising feature is the
group of diagonal lines of points at larger times and sizes. Not only do
the lines appear to be parallel, they also lie at a 45◦ angle to the coordi-
nate axes, as indicated by the parallel dashed green line with equation
y = x − 2. These diagonal lines of points represent sets of ﬂows where

log10 time = log10 size + C,

for some constant C, which is the same as

size = R · time,

where R = 10−C is interpretable as a constant rate. Thus, the ﬂows fol-
lowing each diagonal line have essentially the same rate (deﬁned as total
size divided by total time).

222

10 Transactions

)
n
o
i
t
a
r
u
D
e
s
n
o
p
s
e
R
(

0
1
g
o

l

log10(Response Size)

Fig. 10.11. Log-log scatterplot showing how ﬂow duration time depends on trans-
mission size. Suggests clusters of ﬂows with same throughput (rates) as diagonal
lines.

Figure 10.11 gives a strong visual impression that the large ﬂows may
be naturally clustered in terms of rates. This is sensible because rates
are naturally driven by the nature of the network between the source
and the destination. Most of the computers within UNC will likely have
quite similar rates for a few popular websites, resulting in similar rates
for large numbers of transfers.

The second main open problem of this chapter is to develop methods
for analysing this aspect of the population. How can the clusters be iso-
lated? What are the cluster boundaries? How many ﬂows are in the major
clusters?

10.5 Commonality of Flow Rates

223

A start on addressing these issues appears in Figure 10.12. The data
are projected onto the orthogonal solid green line in Figure 10.11, so the
problem is reduced to studying clusters in univariate data. For easy vi-
sual connection to Figure 10.11, the data are transformed to the coordi-
nate system which treats the solid green line as the axis. The transfor-
mation is
proj = −2 − log10 time − log10 size
√

√

2

.

2 makes the transformation length invariant (i.e.,
The denominator of
a rotation), and the subtraction from −2 gives the most straightforward
view of the solid green line as an axis. In particular, the solid green line
is rotated in a counterclockwise fashion to give a conventional horizontal
axis (as in Figure 10.12), and the points on the upper left part of the green
line become negative values in the univariate view.

The top panel of Figure 10.12 shows two displays of the projected data.
In the ﬁrst, the green dots have horizontal coordinates of their projection
values (i.e., the locations of the data points when projected onto the green
line), and random vertical coordinates for visual separation. This jittered
plot shows only a random sample of 10,000 to avoid overplotting prob-
lems. The second display of the data is the family of blue curves. These
are kernel density estimates (essentially smooth histograms), with a wide
range of window widths. Looking at a family of smooths is the scale space
view of data, which is recommended as a practical solution to the tradi-
tional problem of bandwidth choice, see Chaudhuri and Marron (1999)
for further discussion.

The family of kernel smooths suggests a number of broad bumps, and
there is also a number of small spikes. It is tempting to dismiss the spikes
as spurious sampling variability, but recall that clusters were suggested
in Figure 10.11, and a possible physical explanation was suggested above.
Furthermore the sample size N = 382, 127 is fairly large, so perhaps those
spikes represent important underlying structure in the data?

A useful tool for addressing such exploratory data analysis questions
is the SiZer map shown in the bottom panel of Figure 10.12. Rows of this
map correspond to different window widths, i.e., to blue kernel smooths,
and the horizontal axis is the same as in the top panel. Colours are used
to indicate statistical signiﬁcance of the slopes of the blue curves, with
blue (red) for signiﬁcantly increasing (decreasing), with purple for regions
where the slope is not signiﬁcantly different from 0, and with gray where
the data are too sparse for reliable inference.

The SiZer map shows that all of the broad bumps are statistically
signiﬁcant, as are most of the tall thin bumps. These may not be surpris-
ing because N = 382, 127 allows resolution of quite a few features of the
underlying probability density, in view of the large sample size. More sur-
prising may be the very small bump at -1.7. This is hardly visible in the
blue family, and yet is clearly statistically signiﬁcant in the SiZer map.

224

10 Transactions

Jitter plot and kernel smooths

2

1.5

1

0.5

0

(cid:239)0.5

(cid:239)1

(cid:239)1.5

(cid:239)5

(cid:239)4

(cid:239)3

(cid:239)2

(cid:239)1

0

SiZer map

)
h
(

g
o

l

0
1

(cid:239)2

(cid:239)2.5

(cid:239)3

(cid:239)5

(cid:239)4

(cid:239)3

(cid:239)2

(cid:239)1

0

Fig. 10.12. The SiZer analysis of the projected scatterplot shows many signiﬁcant
clusters.

The analysis of Figure 10.12 is not very satisfying, because it seems
that perhaps some of the clusters, which are clearly visible as lines of
points in Figure 10.11, might be masked by the large amount of other
data that makes up the broad peaks. A simple approach to this is to re-
peat the analysis for a suitably thresholded sub-sample. Visual inspection
of Figure 10.11 suggests using only the data above the solid green line,
y = −x + 7. There were 572 such points, still enough for effective kernel
density estimation. The resulting analysis is shown in Figure 10.13.

As expected, the broad bumps in Figure 10.12 have now disappeared.
There are also some very signiﬁcant slim spikes. Note that the spike near
-1.7 is now much taller in the blue family of curves (essentially all of
these data points have been retained from Figure 10.12 and are now pro-

10.5 Commonality of Flow Rates

225

Jitter plot and kernel smooths

(cid:239)5

(cid:239)4

(cid:239)3

(cid:239)2

(cid:239)1

0

SiZer map

15

10

5

0

(cid:239)0.5

(cid:239)1

(cid:239)1.5

)
h
(

g
o

l

0
1

(cid:239)2

(cid:239)2.5

(cid:239)3

(cid:239)5

(cid:239)4

(cid:239)3

(cid:239)2

(cid:239)1

0

Fig. 10.13. SiZer analysis of scatterplot points above the solid green line in Fig-
ure 10.11. It shows signiﬁcant clusters, but different from those of Figure 10.12.
Many more clusters than those in Figure 10.11 exist.

portionally a far larger part of the population). However, note that many
of the tall thin peaks in Figure 10.12 are not present in Figure 10.13.
This shows that much of the clustered aspect of the population actually
occurs more in the main body of the main scatterplot in Figure 10.11 and
thus cannot be teased out by simple thresholding as done in Figure 10.13.
This is a case where the scatterplot of Figure 10.11 hides a large
amount of interesting population structure. The SiZer analysis is an indi-
rect way of understanding this. A more direct way of visualizing this type
of structure is to use α-blending as described in Section 3.5. Whereas the
scatterplot in Figure 10.11 uses an α-value of 0.5, the α-value in Fig-
ure 10.14 is as low as 0.025, i.e., just 1/20 of the original value. Much of

226

10 Transactions

)
n
o
i
t
a
r
u
D
e
s
n
o
p
s
e
R
(

0
1
g
o

l

Fig. 10.14. The same data as in Figure 10.11, now with an α-value of 0.025.

log10(Response Size)

the structure revealed in Figures 10.12 and 10.13 can also be seen here.
The ﬁgure also suggests that some hidden structure might be uncovered
with further exploration, whether with zooming in and other α-values or
with additional SiZer analyses.

11

Graphics of a Large Dataset

Antony Unwin and Martin Theus

Wir reden zuviel, wir sollten weniger sprechen und mehr zeichnen.1

Johann Wolfgang von Goethe, to Johannes Daniel Falk, 14 June 1809

11.1 Introduction

Describing visualization methods is one thing, putting them into action
another. In the ﬁnal chapter, a real dataset is analysed to illustrate the
contribution visualization can make in practice. The dataset of High-Tech
company information was used for the InfoVis 2005 conference contest
(Grinstein et al.; 2005, see http://ivpr.cs.uml.edu/infovis05).
Obviously the application here concentrates on what visualization can do,
though many analytical tools could contribute as well. Information may
be uncovered in the data using a variety of approaches, and the graph-
ics described are just some of many that could be drawn. Other graphics
may highlight the same features in different ways or could emphasise
other aspects of the dataset. There are many, many possibilities. Every
data analysis is different and so there are no hard and fast rules.

The next section gives a brief summary of the major stages of a data
analysis and the chapter roughly follows this ordering. Data analysis is
not a linear process with a ﬁxed sequence of predeﬁned steps from be-
ginning to end, but some form of structure should be kept in mind. At
all times, it is valuable to be able to talk to people who know how the
data were collected, what the variables mean, and which conclusions are
important.

For an introduction consider Figure 11.1, a parallel coordinates plot of
the aggregate sales of companies by State over the 15 years of the dataset.
It gives a good summary of the overall trend. The general rise is partly
due to inﬂation and partly due to the growth of High-Tech industries.
Linking to a map (see Section 11.3.6) can help to interpret the apparent
clustering.
1 We talk too much, we should speak less and draw more.

228

11 Graphics of a Large Dataset

Sale90

Sale92

Sale94

Sale96

Sale98

Sale00

Sale02

4
8
0
0
5
1
1

1

Sale89

Sale91

Sale93

Sale95

Sale97

Sale99

Sale01

Sale03

Fig. 11.1. Parallel coordinate plot of the aggregate sales of companies by State
over the ﬁfteen years of the dataset. In 1998, there is a clear separation into three
groups: a top group consisting of CA, NY, TX, and MI; a second group (selected)
consisting of CT, NJ, PA, OH, and IL; and the rest. Over the course of the next 5
years, MI could not keep up with the growth of CA, NY, and TX and fell back into
the second group.

11.2 QuickStart Guide
Data Visualization for Large Datasets

1. Preliminaries

Find out the background
– what are the goals of the study?
– what are the data? (numbers of variables and cases)
Prepare the data
– formatting, storing
– merging and matching

2. Variables

What types of data?
– nominal, ordinal, continuous, spatial, . . .
What properties do the data have?
– individual plots
– range, categories, missings, outliers
Assess the data quality and clean the data
Check for consistency and plausibility

3. First analyses

Use multiple basic plots together
– barcharts, histograms, scatterplots
Explore the plots using interaction
– especially querying, linking, reformatting
Summarise low-dimensional properties of the data

11.3 Visualizing the InfoVis 2005 Contest Dataset

229

4. Multivariate displays

Choose subsets of variables relevant to the goals
Draw multivariate plots
– parallel coordinates, scatterplot matrices for continuous
– mosaic plot variations for categorical variables
Explore using interaction, including sorting and zooming
Identify any higher dimensional structure

5. Grouping and selection

Condition on grouping variables and compare subsets
– boxplots by one grouping variable
– small multiples, trellis displays
Consider interesting selected subsets in isolation (drill-down)

6. Special features

Reduce dataset
– aggregate data by groups or clusters (case reduction)
– combine related variables (dimension reduction, e.g., PCA)
Use any temporal structure (time series plots)
Link to maps if there is spatial information

7. Presenting results

Choose and polish graphics that convey the main conclusions
Ensure that all graphics are fully explained

11.3 Visualizing the InfoVis 2005 Contest Dataset

11.3.1 Preliminaries

Background

The aims and background information about the data were provided on a
webpage (which is an uncommon situation for an analysis, as usually the
connection between the analyst and the dataset provider is much closer).
Questions of interest included characterizing clusters of industries and
identifying unusual companies and regions.

Data Preparation

The data were made available in a collection of datasets, two for each year
plus one with variable information and one with the geographic locations
of zipcodes. There were data for 85,000 ﬁrms over 15 years. One set of
ﬁles gave information by ﬁrm and the other gave information by ﬁrm
activities (for instance, in 2003 there were some 57,000 ﬁrms and just
under 200,000 activities). It was possible to
• combine the data in one or more larger datasets

(which makes them readily accessible to statistics software);

230

11 Graphics of a Large Dataset

• set up a relational database

(which makes it easy to reorganize them in different forms).

11.3.2 Variables

Types of Data

In the raw InfoVis datasets, there were nine variables per year over the
15 years: an ID variable, three for the address (city, state, and zipcode),
one categorical (Industry sector), one structured categorical (NAICS, an
industrial classiﬁcation code), one discrete (year of founding), and two
continuous (sales and numbers of employees).

11.3.3 First Analyses

Categorical Variables

Categorical variables may be nominal or ordinal. Industry sector and
State clearly have no numerical ordering and were treated as nominal.
NAICS codes are numerical but should not be treated as ordinal. Their
structure is hierarchical, so the digits do contain information, they are
not just nominal values. The same goes for zipcodes.

There are 18 Industry sectors and 52 States (including Puerto Rico
and Washington, DC). The upper panel of Figure 11.5 shows how the com-
panies were distributed by Industry and State in 2003. There were large
numbers of both Software and Telecommunications companies. Amongst
the States, California dominated, with Massachusetts, New York, and
Texas some way behind.

With large datasets, simple categorical variables may have very many
categories — an issue that is discussed in Section 3.3.2. In this applica-
tion, there was a variable called primary NAICS code, which in the ﬁrst

0
0
1

0
8

0
6

0
4

0
2

0

0

100

200

300

400

Fig. 11.2. Cumulative shares of sales in 2003 by NAICS categories.

11.3 Visualizing the InfoVis 2005 Contest Dataset

231

year of the study in 1989 had 142 categories and in the ﬁnal year, 2003,
479. Needless to say, many categories were very small. The biggest 59
categories in 1979 contained 90% of the categories and in 2003 it was the
biggest 65 categories (out of 479!) that contained 90%. Categories with
very low frequencies could be ignored, combined, or perhaps highlighted
as interesting, unusual cases. For the InfoVis dataset it is worth remem-
bering that aggregate sales may be a better measure of importance than
numbers of companies. The largest 70 categories in 2003 amount to 90%
of sales (Figure 11.2), but only 79% of the companies. One solution was
to aggregate the NAICS codes across their ﬁrst two digits. This left 24
groups with 6 still being relatively small.

Continuous Variables

Figure 11.3 is a missing value
plot for each year of sales data.
The numbers of companies rose
steadily till 2001, but declined in
the following two years.

Patterns of missing values for
sets of variables can be looked at
in two ways. In Figure 11.4, the
upper plot displays missing values
for 5 variables from 2002 individ-
ually. Because the data for many
companies are missing altogether
in each year, the combinations of
missings for companies with at
least some data are more interest-
ing and these are displayed in the
ﬂuctuation diagram in the lower
plot of Figure 11.4, which was
generated from the missing value
plot. The largest group amongst
the companies with both some val-
ues present and some missing has
been selected, about 5% of all the
companies.

Sales89

Sales90

Sales91

Sales92

Sales93

Sales94

Sales95

Sales96

Sales97

Sales98

Sales99

Sales00

Sales01

Sales02

It is not so much the num-
ber of companies, but the sales
they achieve. The barcharts in the
lower panel of Figure 11.5 are
weighted by sales in 2003 and
show how the importance of the
NON Industry sector (“not primarily High-Tech”) increases substantially

Fig. 11.3. Proportions of recorded data
and missing values for all companies for
the years 1989 to 2003.

Sales03

232

11 Graphics of a Large Dataset

IndType02

YearFounded02

NAICS02

Sales02

Employees02

all available

all missing

a
l
l

a
v
a
i
l
a
b
e

l

a
l
l

m

i
s
s
i
n
g

Fig. 11.4. A missing value plot of the ﬁve major variables for the year 2002 (above).
The 4301 cases missing on Sales, Employees, and NAICS, but with values for Ind-
Typ and YearFounded have been selected. A ﬂuctuation diagram for the ﬁve 2002
variables showing which combinations of missings arise (below). Most cases are
all present (grey cell top left) or all absent (white cell bottom right).

when sales and not just counts are considered, while that of the Telecom-
munications group declines. Energy is also much more important in terms
of sales. In the barchart of States, the relative positions of California and
New York change, and Massachusetts is now no longer even in the top ten.
Comparing the barcharts in the upper and lower panels of Figure 11.5
can be done for major differences, but not for more precise comparisons.
Alternatives include side-by-side versions, as in Figure 11.6. On the left,
the original ordering is retained and on the right, the sectors have been
sorted by numbers of companies. The Energy sector stands out even more
and the low values for Manufacturing and Factory Automation become
apparent.

Both sales and employee ﬁgures were highly skew. Figure 11.7 shows
the employee numbers distribution for 2003, both for the raw data (left)
and for log transformed data (right). Redmarking is obviously needed in

 
 
11.3 Visualizing the InfoVis 2005 Contest Dataset

233

Industry Sector

Counts

AUT BIO CHE COM DEF

ENR ENV MAN MAT MED NON PHA PHO SOF

SUB TAM TEL TRN

State

AK AL AR AZ CA CO CT DC DE FL GA HI

IA ID IL IN KS KY LA M M ME MI M M MS MT NC ND NE NH NJ N NV NY OHOKOR PA PR RI SC SD TN TX UT VA VT W WI W WY

Industry Sector

Aggregate Sales

AUT BIO CHE COM DEF

ENR ENV MAN MAT MED NON PHA PHO SOF

SUB TAM TEL TRN

State

AK AL AR AZ CA CO CT DC DE FL GA HI

IA ID IL IN KS KY LA M M ME MI M M MS MT NC ND NE NH NJ N NV NY OHOKOR PA PR RI SC SD TN TX UT VA VT W WI W WY

Fig. 11.5. Numbers of companies by State and by Industry sector (upper panel)
Aggregate sales by State and by Industry sector in 2003 (lower panel).

234

11 Graphics of a Large Dataset

Industry Sector

Aggregate Sales

Counts

Industry Sector

Aggregate Sales

Counts

A
A
U
U
T
T

B
B
I
I
O
O

C
C
H
H
E
E

C
C
O
O
M
M

D
D
E
E
F
F

E
E
N
N
R
R

E
E
N
N
V
V

M
M
A
A
N
N

M
M
A
A
T
T

M
M
E
E
D
D

N
N
O
O
N
N

P
P
H
H
A
A

P
P
H
H
O
O

S
S
O
O
F
F

S
S
U
U
B
B

T
T
A
A
M
M

T
T
E
E
L
L

T
T
R
R
N
N

T
T
E
E
L
L

S
S
O
O
F
F

S
S
U
U
B
B

N
N
O
O
N
N

M
M
A
A
N
N

A
A
U
U
T
T

C
C
O
O
M
M

T
T
A
A
M
M

E
E
N
N
V
V

M
M
A
A
T
T

M
M
E
E
D
D

E
E
N
N
R
R

B
B
I
I
O
O

C
C
H
H
E
E

P
P
H
H
O
O

P
P
H
H
A
A

T
T
R
R
N
N

D
D
E
E
F
F

Fig. 11.6. Companies by Industry sector, both by numbers and by aggregate sales,
ordered alphabetically on the left and by numbers of companies on the right.

the raws plot and reveals that one outlier group on its own (in fact, just
one company) extends the scale by a factor of two. Redmarking is also use-
ful in the logged histogram. You could look for modes, gaps, clusters, or
accumulations at favoured values. Summary statistics (maximum, min-
imum, mean, median, and possibly others) will reveal other aspects of
the variables. For instance, in the InfoVis dataset, there were a few sales
ﬁgures that were negative. Large datasets are like that.

raw data

Employees 2003

logged data

Fig. 11.7. Distribution of employee numbers in 2003 for 45,000 companies, raw
data (left) and log transformed (right).

11.3 Visualizing the InfoVis 2005 Contest Dataset

235

11.3.4 Multivariate Displays

Pairs of Continuous Variables

There is a suggestion in the right-hand plot of Figure 11.7 that some val-
ues occur particularly often. A scatterplot of log Sales and log Employee
numbers, Figure 11.8 (top), offers supporting evidence, and varying the
level of α-blending, the effect becomes obvious, Figure 11.8 (bottom). It
does not come as a big surprise that company ﬁgures are often reported
in rounded numbers.

Some outliers can be very informative. After time series of the sales
data showed a few strange excessive peak patterns (Figure 11.10), scat-
terplots like the one in Figure 11.9 were drawn to check how serious
the problem might be. Sales jumping from 0 to a high value and back
again could just about be plausible (a very successful start-up disappear-
ing through takeover), but high sales falling to a much lower non-zero
ﬁgure after a sharp rise look suspicious. The plot shows two extreme out-
liers top left, companies with few sales in 1992 and very many in 1993,
and two bottom right, companies with strong sales in 1992 but hardly any
in 1993.

In this scatterplot, there is so much overplotting along the diagonal
that there is no method that can accurately represent the data density.
On the other hand, this makes the cases not on the diagonal all the more
interesting. Plots like this led to investigating year on year changes and
to the discovery that for a high proportion of companies the same sales ﬁg-
ures were recorded for both years (39.5% of those operating in both 1989
and 1990 with sales greater than 1 in both years and 47.1% of the 29,500
companies operating in both 2002 and 2003 with sales greater than 1 in
both years). Serendipitous discoveries are a feature of exploratory work.

Pairs of Categorical Variables

Two categorical variables can be plotted in mosaic plots. Fluctuation dia-
grams are best for displaying year on year transitions (e.g., Industry sec-
tors in two successive years as in Figures 11.12 and 11.13). Same binsize
plots are useful for drawing attention to combinations that never occur
and for comparing proportions across groups irrespective of their sizes,
e.g., Figure 11.16 for State by Year.

Combinations of More Than Two Continuous Variables

Missings can be a problem in multivariate displays. In the InfoVis dataset,
this difﬁculty was avoided for sales and employee ﬁgures by replacing
missings with zeros. You could say that if a ﬁrm does not exist, then it
has neither sales nor employees.

236

11 Graphics of a Large Dataset

)
3
0

s
e
l
a
S
(
g
o

l

)
3
0

s
e
l
a
S
(
g
o

l

log(Employees 03)

Fig. 11.8. Log Sales in 2003 plotted against log Employee numbers in 2003 with a
default value for α-blending (top), and with a higher level of α-blending (bottom).

 
 
11.3 Visualizing the InfoVis 2005 Contest Dataset

237

Fig. 11.9. Sales in 93 plotted against sales in 92. The scales are the same on both
axes. One of the outliers has been queried.

Parallel coordinate plots are a good way of gaining an overview of
many continuous variables. If it makes sense to scale all of a group of
variables to a common scale, then the plot is even more informative, e.g.,
the yearly sales ﬁgures of the companies in Figure 11.10. Alpha-blending
(see Section 3.5) may be used to counteract overplotting with large num-
bers of cases, as with the scatterplots in Figure 11.8.

(Dimension reduction methods, like principal components, may be
useful with large numbers of continuous variables. However, the effects of
outliers and skew distributions should be dealt with ﬁrst, otherwise stan-
dardising of individual variables carried out prior to dimension reduction
will produce poor results.)

Combinations of More Than Two Categorical Variables

Fluctuation diagrams of Industry by State show where industries are lo-
cated (look down the columns) and which industries are important for

238

11 Graphics of a Large Dataset

wSales90

wSales92

wSales94

wSales96

wSales98

wSales00

wSales02

5
2
5
6
4
2

0

wSales89

wSales91

wSales93

wSales95

wSales97

wSales99

wSales01

wSales03

Fig. 11.10. Parallel coordinate plot for all 72,148 companies with non-zero sales.

the States (look across the rows). The diagram on the left of Figure 11.11
displays numbers of companies in 2003. The main feature is the large
numbers of companies in several sectors in California. The diagram on
the right of Figure 11.11 is weighted by aggregate sales in 2003. The col-
umn for the Industry sector NON stands out, as does the cell towards the
lower left of the plot representing the sector Energy in Texas. California
is less important by sales than it is by numbers of companies, something
that was already obvious in Figure 11.5.

The sharp rise of sales in the Industry sector NON could have been
due to reclassiﬁcation of large companies. The upper plot of Figure 11.12
shows a ﬂuctuation plot of Industry sector in 2000 (rows) and 2001
(columns). Ceiling-censored zooming has been used to downplay the strong
diagonal effect due to most companies not changing sector. The rightmost
column shows the numbers of companies in the 2000 dataset that were
not in the 2001 dataset, and the bottom row shows the companies that ap-
peared in 2001 but not in 2000. The large numbers of new companies in
the sectors NON and Telecommunications is striking. In particular, there
were more new companies in the NON sector in 2001 than in that sector
altogether in 2000.

The Industry sector change plot can be weighted with sales in 2000,
emphasizing what companies sold before they changed sector (off-diagonal
elements) or disappeared (ﬁnal column). This is shown in the lower plot
of Figure 11.12 where the companies moving to NON from Environment
make up the largest group changing sector. In Figure 11.13, the weighting
is by sales in 2001, emphasizing what companies sold after they moved
sectors (off diagonal cells) or what companies new to the dataset sold (bot-
tom row). Here it is the high sales by the “new” companies in the NON
sector that stand out.

AUT BIO CHE COM DEF ENR ENV MAN MAT MED NON PHA PHO SOF SUB TAM TEL TRN

AUT BIO CHE COM DEF ENR ENV MAN MAT MED NON PHA PHO SOF SUB TAM TEL TRN

11.3 Visualizing the InfoVis 2005 Contest Dataset

239

K
A

L
A

R
A

Z
A
A
C
O
C
T
C

C
D
E
D

L
F

A
G

I

H

A

I

D

I

L
I

N

I

S
K

Y
K

A
L
A
M
D
M
E
M

I

M
N
M
O
M
S
M
T
M
C
N
D
N
E
N

H
N

J
N
M
N
V
N
Y
N
H
O
K
O
R
O
A
P

R
P

I

R

C
S

D
S

N
T

X
T

T
U

A
V

T
V
A
W

I

W
V
W
Y
W

K
A

L
A

R
A

Z
A
A
C
O
C
T
C

C
D
E
D

L
F

A
G

I

H

A

I

D

I

L
I

N

I

S
K

Y
K

A
L
A
M
D
M
E
M

I

M
N
M
O
M
S
M
T
M
C
N
D
N
E
N

H
N

J
N
M
N
V
N
Y
N
H
O
K
O
R
O
A
P

R
P

I

R

C
S

D
S

N
T

X
T

T
U

A
V

T
V
A
W

I

W
V
W
Y
W

Fig. 11.11. A ﬂuctuation diagram of companies by State and Industry, raw counts
(left), weighted by Sales in 2003 (right).

11.3.5 Grouping and Selection

Selecting Industry sectors in a barchart and linking to sales/employee
numbers scatterplots like Figure 11.8 reveals different data patterns. The
900 chemical companies follow a common linear relationship, whereas
the 1,100 energy companies are more varied with more companies having
relatively higher sales (see Figure 11.14).

240

11 Graphics of a Large Dataset

Industry Sector 01
AUT BIO CHE COM DEF ENR ENV MAN MAT MED NON PHA PHO SOF SUB TAM TEL TRN NA

raw data

AUT BIO CHE COM DEF ENR ENV MAN MAT MED NON PHA PHO SOF SUB TAM TEL TRN NA

weighted by Sales 00

0
0

r
o
t
c
e
S

y
r
t
s
u
d
n
I

0
0

r
o
t
c
e
S

y
r
t
s
u
d
n

I

T
U
A

O
B

I

E
H
C
M
O
C

F
E
D

R
N
E

V
N
E

N
A
M
T
A
M
D
E
M
N
O
N

A
H
P

O
H
P

F
O
S

B
U
S

M
A
T

L
E
T

N
R
T

A
N

T
U
A

O
B

I

E
H
C
M
O
C

F
E
D

R
N
E

V
N
E

N
A
M
T
A
M
D
E
M
N
O
N

A
H
P

O
H
P

F
O
S

B
U
S

M
A
T

L
E
T

N
R
T

A
N

Fig. 11.12. Ceiling-censored ﬂuctuation plot of Industry sectors in 2000 and 2001
(top): same plot weighted by sales in 2000 (bottom).

 
 
 
 
11.3 Visualizing the InfoVis 2005 Contest Dataset

241

Industry Sector 01
AUT BIO CHE COM DEF ENR ENV MAN MAT MED NON PHA PHO SOF SUB TAM TEL TRN NA

weighted by Sales 00

AUT BIO CHE COM DEF ENR ENV MAN MAT MED NON PHA PHO SOF SUB TAM TEL TRN NA

weighted by Sales 01

0
0

r
o
t
c
e
S

y
r
t
s
u
d
n
I

0
0

r
o
t
c
e
S

y
r
t
s
u
d
n
I

T
U
A

O
B

I

E
H
C
M
O
C

F
E
D

R
N
E

V
N
E

N
A
M
T
A
M
D
E
M
N
O
N

A
H
P

O
H
P

F
O
S

B
U
S

M
A
T

L
E
T

N
R
T

A
N

T
U
A

O
B

I

E
H
C
M
O
C

F
E
D

R
N
E

V
N
E

N
A
M
T
A
M

D
E
M
N
O
N
A
H
P

O
H
P
F
O
S

B
U
S

M
A
T

L
E
T

N
R
T

A
N

Fig. 11.13. Ceiling-censored ﬂuctuation plot of Industry sectors in 2000 and 2001
weighted by sales in 2000 (top): same plot weighted by sales in 2001 (bottom).

 
 
 
 
242

11 Graphics of a Large Dataset

Sorting barcharts in different ways can also shed light on individual
groups. Figure 11.15 shows three displays for the States in 2003. The top
plot is ordered by numbers of companies in California and demonstrates
that California is like the US as a whole, at least in terms of relative num-
bers of companies. The middle plot is ordered by sales of Californian com-
panies and shows which sectors are important to California. The NON
sector is most important, but others are too, and notice especially the
Energy sector. The third plot is ordered by the proportion of sales by Cal-
ifornian companies and shows in which sectors California is important
for the nation. Here the sectors Software and Communication stand out,
while NON and Energy are ranked far lower.

Figure 11.16 is a same binsize mosaic plot, which can be used to judge
how strong Industry sectors are in different States over the years. The
Chemical Industry has been selected, and its dominance in Delaware is
clearly visible, as is its declining importance in Wyoming. In this view,
all bins are the same size, so highlighting is comparing proportional val-
ues, not absolute values. The bins are weighted by sales. Obviously, the
absolute ﬁgures would look quite different.

The State and Industry sectors together give 52×18 = 936 combina-
tions. Other factors of interest include the year the ﬁrm was founded.
Concentrating on newer ﬁrms, those founded since 1988, would give
52×18×15 = 14,040 combinations, far too many to distinguish patterns.
Concentrating on the biggest three States by total sales reduces the num-
ber of combinations to a manageable 1350 as in Figure 11.17. California
is represented by the cells to the left, New York by those in the mid-
dle, and Texas by those on the right. Noteworthy are the groups of ﬁrms
from individual years with high sales, for instance the 5 Energy compa-
nies founded in Texas in 2002 (the largest cell on the right), and the 22
Telecommunications companies founded in 2001 in New York (the largest
cell in the bottom row). By contrast, the fairly regular pattern of Califor-
nian ﬁrms in Telecommunications (the cells to the left in the bottom row)
is the exception rather than the rule. (The details for these graphics were
obtained by querying the individual cells.)

11.3.6 Special Features

The temporal structure in the InfoVis dataset is simple, one value per
variable per year for 15 years. It leads to large numbers of short time
series, but none of the difﬁculties you can face with comparing series of
different lengths, recorded at different, irregular time points. Plotting the
80,000-plus series together, as in Figure 11.10, was done using parallel
coordinates because it offered the option of displaying boxplots by time-
points to compare distributions by year (which is useful for identifying
outliers).

11.3 Visualizing the InfoVis 2005 Contest Dataset

243

)
3
0

s
e
l
a
S
(
g
o

l

)
3
0

s
e
l
a
S
(
g
o

l

log(Employees 03)

Fig. 11.14. Log Sales in 2003 plotted against log Employee numbers in 2003 with
the Chemical sector highlighted (top) and the Energy sector highlighted (below).

 
 
244

11 Graphics of a Large Dataset

Industry Sector

ENR TRN PHA MAT ENV PHO BIO AUT MED TAM MAN NON COM SUB

DEF CHE
Counts, sorted by number of companies in California

SOF

TEL

ENV AUT PHA PHO MAT TRN TAM BIO MED DEF MAN SUB

CHE
Weighted by Sales in 2003 and sorted by California Sales in 2003 

TEL

ENR SOF COM NON

CHE PHA MAT TRN NON AUT ENV MED TEL
Weighted by Sales in 2003 and sorted by California’s share of Sales in 2003

BIO PHO SUB MAN COM SOF

ENR TAM DEF

Fig. 11.15. Three different ways of sorting Industry sectors using sales information
from companies in California.

11.3 Visualizing the InfoVis 2005 Contest Dataset

245

1989

1990

1991

1992

1993

1994

1995

1996

1997

1998

1999

2000

2001

2002

2003

Y
N
A
C

X
T

I

M

L
I

T
C

A
P

J
N
H
O
N
M
A
M
O
M
A
G
A
W
A
V

L
F

R
A

I

W
C
N

N

I

D
M
E
D
O
C
E
N

Y
K
N
T
K
O
C
D
Z
A

H
N
S
K

I

R

L
A

R
O
S
M
T
U
C
S

A
L

D

I

A

I

D
S
V
N

T
V
V
W
E
M
M
N
K
A

D
N
T
M

I

H
Y
W
R
P
A
N

Fig. 11.16. A Mosaic Plot of State by Year weighted by sales in the ‘Same Binsize’
view with the Chemicals Industry (CHE) group highlighted. States sorted by size.

246

11 Graphics of a Large Dataset

CA

NY

TX

T
U
A

O
B

I

E
H
C
M
O
C

F
E
D

R
N
E

V
N
E

N
A
M
T
A
M

D
E
M
N
O
N

A
H
P

O
H
P

F
O
S

B
U
S

M
A
T

L
E
T

N
R
T

Fig. 11.17. Fluctuation diagram by Industry and Year Founded (after 1988) for
California, New York, and Texas, weighted by Sales in 2003.

The dataset included spatial information by State and by zipcode. The
State information could be used to produce displays like Figure 11.19
showing the US States coloured according to aggregated 2003 sales data.
California, New York, and Texas clearly stand out. The ﬁle of longitude
and latitude values for each zipcode produced a location map of points,
Figure 11.18, highly concentrated on the Coasts with some relatively
empty areas in the centre of the country. To construct a more represen-
tative view, the zipcodes were converted to counties using the databases
available at http://www.zipinfo.com.2 Figure 11.20 shows the 2003
sales data again, this time by county, and reveals much more detail than
was possible in Figure 11.19. Consistent patterns for the New England
area as well as for the Bay Area and Los Angeles can be seen. Counties
with zero values are not coloured.

Maps on both State and County level can be downloaded from US gov-

ernmental sites free of charge.

Scatterplots of zipcodes for the 10,613 companies that were in the
dataset in both 1989 and 2003 are shown in Figure 11.21. A little over
half (5482) had the same zipcode in both years, those on the main diag-
onal. The left scatterplot shows that there was a broad spread of moves.
Depending on your opinions of High-Tech companies, you can either be
surprised that such a high percentage of ﬁrms has moved or that such
a high percentage of ﬁrms has not moved. Further ways of investigating
this phenomenon include ﬂuctuation diagrams for moves between States,

2 Several public domain zipcode-databases turned out to be too inaccurate to be

useful.

11.3 Visualizing the InfoVis 2005 Contest Dataset

247

Fig. 11.18. Zipcode locations of companies, based on their last recorded zipcode
(excluding companies in Alaska, Hawaii, and Puerto Rico).

Fig. 11.19. A choropleth map of the US States coloured by sales in 2003, ranging
from light blue (low) to bright red (high).

plots using the distance between zipcodes, and maps linked to these dis-
plays. There are a lot of alternatives — as there always are with graphics.

11.3.7 Presenting Results

The graphics in this chapter have been drawn with several software
packages to illustrate the range of possibilities available. Although they
present some interesting ﬁndings, they have been drawn primarily for
exploratory purposes not so much for presentation purposes. Analysing
large datasets involves drawing lots of graphics, not just one or two.

248

11 Graphics of a Large Dataset

Fig. 11.20. A choroplethmap of the US Counties coloured by sales in 2003. The
same colour scale has been used as in Figure 11.19, and counties with zero values
are not coloured.

Fig. 11.21. Zipcode locations of companies in the dataset for both 1989 and 2003.
The plot on the right uses a smaller point size to emphasise the diagonal of ﬁrms
with unchanged zipcodes.

Even if an analysis is quite narrowly focused on a speciﬁc question, large
datasets offer plenty of views and aspects to explore.

More attention could have been paid to framing, scaling, colour, aspect
ratio, annotations, and all the other components that make up the aes-
thetics of graphics. There are some rules that should always be respected,
but many options are a subjective matter to a great extent. Readers can
mull over what choices they themselves would have made for individual
displays. “Perfect” solutions are rare.

Up till now, presentation of graphics has meant static paper printed
plots. This is going to change, and interactive and ﬂexible displays will
become available via the web. One notable example is the US Can-

11.3 Visualizing the InfoVis 2005 Contest Dataset

249

cer Mortality Atlas, which can be found at http://www.cancer.gov/
atlasplus/. With all that ﬂexibility to hand, it is important to remem-
ber that the correct interpretation is mostly left to the reader of the
graphic displays.

11.3.8 Summary

Visualization is excellent for displaying overall trends (like the increas-
ing sales in Figure 11.1, the patterns of sales by State in Figures 11.5 and
11.6, and the distribution of employee numbers in Figure 11.7), for reveal-
ing individual details (like the odd sales jumps noticed in Figure 11.10
and conﬁrmed in Figure 11.9), for uncovering data quality issues (like
the missing patterns in Figure 11.4, the rounding of data observed in Fig-
ure 11.8, and the sales that were the same in successive years, initially
suggested by Figure 11.9), for comparing groups (like the different indus-
try patterns in Figure 11.14), for checking local patterns in various ways
(like that of the Industry sectors in California in Figure 11.15), for iden-
tifying inﬂuential subsets (like the new companies in the NON group in
Figure 11.12), for comparing the importance of different groups (like the
patterns of Industry by State such as in Figures 11.11, 11.12, and 11.16),
for looking at selected subsets (like the development of new companies
in the biggest States in Figure 11.17), for revealing spatial patterns (like
in Figures 11.18 to 11.20), and for looking at changes over time (like the
time series for companies in Figure 11.10 and the scatterplots of zipcode
changes in Figure 11.21).

Every large dataset is unique and special, and there are many differ-
ent and alternative ways of looking at the data. To include all the graph-
ics that depict informative features of the InfoVis dataset would require
many more pages than have been used here. The aim has been to give the
ﬂavour of how visualization can be used to uncover information in data
and to illustrate the variety of questions and the range of information
that come to light in exploring a big dataset.

Now it is time for readers to draw graphics for large datasets for them-

selves . . .

References

Adams, R. and Wu, M. (2002). Pisa 2000 technical report, Technical re-

port, OECD.

Andrews, D.

(1972).

Plots of high dimensional data, Biometrics

28(2): 125–136.

Asimov, D. (1985). The grand tour a tool for viewing multidimensional
data, SIAM Journal on Scientiﬁc and Statistical Computing 6(1): 128–
143.

Becker, R. A. and Cleveland, W. S. (1987). Brushing Scatterplots, in

Cleveland and McGill (1988), pp. 201–224.

Becker, R. A., Cleveland, W. S. and Shyu, M.-J. (1996). The Visual Design
and Control of Trellis Displays, Journal of Computational and Graphi-
cal Statistics 6(1): 123–155.

Bertin, J. (1983). Semiology of Graphics, 2nd edn, University of Wisconsin

Press, Madison.

Bolton, R., Hand, D. J. and Crowder, M. (2004). Signiﬁcance tests for
unsupervised pattern discovery in large continuous multivariate data
sets, CSDA 46(1): 57–79.

Box, G. P. E. and Cox, D. R. (1964). An analysis of transformations, Jour-

nal of the Royal Statistical Society, Series B 26: 211–243.

Braverman, A. (2002). Compressing massive geophysical datasets using

vector quantization, JCGS 11(1): 44–62.

Breiman, L. (1996). Bagging predictors, Machine Learning 24(2): 123/140.
Breiman, L. (1999). Random forests - random features, Technical Report

TR567, University of California Berkeley, Statistics Department.

Breiman, L., Friedman, J. H., Olshen, R. and Stone, C. (1984). Classiﬁca-

tion and Regression Trees, Wadsworth.

Buja, A., Asimov, D., Hurley, C. and McDonald, J. A. (1988). Ele-
ments of a viewing pipeline for data analysis, in W. S. Cleveland and
M. McGill (eds), Dynamic Graphics for Statistics, Wadsworth, Belmont,
CA, pp. 277–308.

252

References

Buja, A., Cook, D., Asimov, D. and Hurley, C. (1996). Theory and com-
putational methods for dynamic projections in high-dimensional data
visualization.
URL: http://www.research.att.com/areas/stat/xgobi/papers/dynamic-
projections.ps.gz

Buja, A. and Tukey, P. (eds) (1991). Computing and Graphics in Statistics,

Springer-Verlag, New York, NY.

Cao, J., Cleveland, W. S., Lin, D. and Sun, D. X. (2001). On the nonsta-
tionarity of internet trafﬁc, Proceedings of the ACM SIGMETRICS ‘01,
pp. 102–112.

Cao, J., Cleveland, W. S., Lin, D. and Sun, D. X. (2002a). The effect of sta-
tistical multiplexing on the long range dependence of internet packet
trafﬁc, Technical report, Bell Labs Tech Report.

Cao, J., Cleveland, W. S., Lin, D. and Sun, D. X. (2002b). Internet traf-
ﬁc: Statistical multiplexing gains, DIMACS Workshop on Internet and
WWW Measurement, Mapping and Modeling.

Cao, J., Cleveland, W. S., Lin, D. and Sun, D. X. (2002c). Internet traf-
ﬁc tends toward poisson and independent as the load increases, in
C. Holmes, D. Denison, M. Hansen, B. Yu, B. M. C. Holmes, D. Deni-
son, M. Hansen, B. Yu and B. Mallick (eds), Nonlinear Estimation and
Classiﬁcation, Springer, New York.

Cappelli, C., Mola, F. and Siciliano, R. (2002). A statistical approach
to growing a reliable honest tree, Computational Statistics and Data
Analysis (38): 285–299.

Card, S. K., MacKinlay, J. D. and Shneiderman, B. (1999). Readings in
Information Visualization: Using Vision to Think, Morgan Kaufmann
Publishers, Inc., San Franciscon, CA.

Carr, D. B. (1985). Evaluation of Graphical Techniques for Data in Di-
mensions 3 to 5: Scatterplot Matrix, Glyph, and Stereo Examples, ASA
Proceedings of the Section on Statistical Computing, American Statis-
tical Association, Alexandria, VA, pp. 229–235.

Carr, D. B. (1991). Looking at Large Data Sets Using Binned Data Plots,

in Buja and Tukey (1991), pp. 7–39.

Carr, D. B., Littleﬁeld, R. J., Nicholson, W. L. and Littleﬁeld, J. S. (1987).
Scatterplot matrix techniques for large n, JASA 82(398): 424–436.
Carr, D. B., Olsen, A. R., Courbois, J.-Y. P., Pierson, S. M. and Carr, D. A.
(1998). Linked micromap plots: Named and described, Statistical Com-
puting & Statistical Graphics Newsletter 9(1): 24–32.

Carr, D. B., Wegman, E. J. and Luo, Q. (1997). ExplorN: Design considera-
tions past and present, Technical Report 137, Center for Computational
Statistics, George Mason University, Fairfax, VA.

Carr, D. B., Zhang, Y. and Li, Y. (2002). Dynamically conditioned choro-
pleth maps, Statistical Computing & Statistical Graphics Newsletter
13(2): 2–7.

References

253

Chambers, J. (1967). Some general aspects of statistical computing, Ap-

plied Statistics 16(2): 124–132.

Chambers, J. (1999). Computing with data: Concepts and challenges, The

American Statistician 53(1): 73–84.

Chaudhuri, P. and Marron, J. S. (1999). Sizer for exploration of structure
in curves, Journal of the American Statistical Association 94: 807–823.
Chipman, H., George, E. and McCulloch, R. (1998). Bayesian cart model
search (with discussion), Journal of the American Statistical Associa-
tion 93(443): 935–960.

Cho, K. (2001). Aguri Trafﬁc Density Graph.

URL:
density.html

http://www.csl.sony.co.jp/person/kjc/kjc/software/aguri-

Clemons, T. and Pagano, M. (1999). Are babies normal?, The American

Statistician 53(4): 298–302.

Cleveland, W. S. (1994). The Elements of Graphing Data, revised edn,

Hobart Press, Summit, NJ.

Cleveland, W. S. and McGill, M. E. (1984). Graphical perception: Theory,
experimentation and application to the development of graphical meth-
ods, Journal of the American Statistical Association 79(387): 531–554.
Cleveland, W. S. and McGill, M. E. (eds) (1988). Dynamic Graphics for

Statistics, Wadsworth, Monterey, CA.

Coale, A. J. and Stephan, F. F. (1962). The case of the indians and the

teen-age widows, JASA 57(298): 338–347.

Coleman, M. K. (1996). Aesthetics-based graph layout for human con-

sumption, Software Practice and Experience 26(12): 1415–1438.

Cook, D., Buja, A., Cabrera, J. and Hurley, C. (1995). Grand Tour and
Projection Pursuit, Journal of Computational and Graphical Statistics
4(3): 155–172.

Cox, D. R. (1984). Long-range dependence: A review, in H. A. David and
H. T. David (eds), Statistics: An Appraisal, Proceedings of the 50th An-
niversary Conference, The Iowa State University Press, pp. 55–74.

Crovella, M. E. and Bestavros, A. (1996). Self-similarity in world wide
web trafﬁc evidence and possible causes, Proceedings of the ACM SIG-
METRICS 96, Philadelphia, PA, pp. 160–169.

Davidson, R. and Harel, D. (1996). Drawing graphs nicely using simu-

lated annealing, ACM Transactions on Graphics 15(4): 301–331.

Dawson, R. J. M. (1995). The “unusual episode” data revisited, Journal of

Statistics Education 3(3).

Di Battista, G., Eades, P., Tamassia, R. and Tollis, I. (1994). Algorithms
for drawing graphs: An annotated bibliography, Computational Geom-
etry (4): 235–282.

Dimsdale, B. (1984). Conic transformations and projectivities, Technical

report, IBM Los Angeles Scientiﬁc Center, Santa Monica, CA.

254

References

Downey, A. B. (2000). The structural cause of ﬁle size distributions, Tech-

nical report, Wellesley College Tech. Report CSD-TR25-2000.
URL: http://rocky.wellesley.edu/downey/ﬁlesize/

Downey, A. B. (2001). Evidence for long tailed distributions in the inter-

net, ACM SIGCOMM Internet Measurement Workshop.
URL: http://rocky.wellesley.edu/downey/longtail/

Dufﬁeld, N. G. and Lund, C. (2003). Predicting resource usage and esti-
mation accuracy in an ip ﬂow measurement collection infrastructure,
ACM SIGCOMM Internet Measurement Conference 2003.

DuMouchel, W., Volinsky, C., Johnson, T., Cortes, C. and Pregibon, D.

(1999). Squashing ﬁles ﬂatter, KDD-99 Proceedings, pp. 6–15.

Dykes, J., MacEachren, A. and Kraak, M.-J. (2005). Exploring Geovisual-

ization, Elsevier.

Eddy, W. F., Fitzgerald, M., Genovese, C., Lazar, N., Mockus, A. and
Welling, J. (1999). The challenge of functional magnetic resonance
imaging, JCGS 8(3): 545–558.

Eick, S. G. and Karr, A. F. (2002). Visual scalability, Journal of Computa-

tional and Graphical Statistics 11(1): 22–43.

Eick, S. G. and Wills, G. (1993). Navigating large networks with hierar-

chies, Proceedings of IEEE Visualization ’93.

Fayyad, U., Grinstein, G. and Wierse, A. (eds) (1999). Information Visual-
ization in Data Mining and Knowledge Discovery, Morgan Kaufmann.
Fisher, R. A. (1991). Statistical methods, experimental design, and scien-

tiﬁc inference, Oxford University Press, Oxford.

Fisherkeller, M. A., Friedman, J. H. and Tukey, J. W. (1971). PRIM-9:
An Interactive Multidimensional Data Display and Analysis System, in
Cleveland and McGill (1988).

Friedman, J. H. (2001). The role of statistics in the data revolution, Inter-

national Statistical Review 69(1): 5–10.

Friendly, M. (1994a). Mosaic displays for multi-way contingency tables,

Journal of the American Statistical Association 89: 190–200.

Furnas, G. W. (1986). Generalized ﬁsheye views, SIGCHI ’86 Conference

on Human Factors in Computing Systems, ACM, pp. 16–23.
Galton, F. (1892). Hereditary Genius, second edn, MacMillan.
Gehrke, J. E., Ganti, V. and Ramakrishnan, R. (2000). RainForest - a
framework for fast decision tree construction of large datasets, Data
Mining and Knowledge Discovery 4: 127–162.

Gelman, A. (2004). Exploratory data analysis for complex models, JCGS

13(4): 755–779.

Gong, W., Liu, Y., Misra, V. and Towsley, D. (2001). On the tails of web ﬁle
size distributions, Proceedings of 39-th Allerton Conference on Commu-
nication, Control, and Computing.
URL: http://www-net.cs.umass.edu/networks/publications.html

Gonz ´alez-Ar´evalo, B., Hern ´andez-Campos, F., Marron, J. S. and Park, C.

(2004). Visualization Challenges in Internet Trafﬁc Research.

References

255

URL:
Challenge/

http://www.cs.unc.edu/Research/dirt/proj/marron/Visual

Good, I. J. and Gaskins, R. A. (1980). Density estimation and bump-
hunting by the penalized likelihood method exempliﬁed by scattering
and meteorite data, JASA 75(369): 42–56.

Grinstein, G., Cvek, U., Derthick, M. and Trutschl, M. (2005). IEEE Info-

Vis 2005 Contest, Technology Data in the US.
URL: http://ivpr.cs.uml.edu/infovis05

Grosjean, J., Plaisant, C. and Bederson, B. (2002). Spacetree: Supporting
exploration in large node link tree, design evolution and empirical eval-
uation, Procedings of IEEE Symposium on Information Visualization,
pp. 57–64.

Han, Y. (2000). Visualization of weighted data, PhD thesis, Department

of Statistics, Iowa State University.

Hand, D. J., Blunt, G., Kelly, M. G. and Adams, N. M. (2000). Data mining

for fun and proﬁt, Statistical Science 15(2): 111–131.

Hannig, J., Marron, J. S. and Riedi, R. (2001). Zooming statistics: Infer-
ence across scales, Journal of the Korean Statistical Society 30(2): 327–
345.

Harris, B. (1959). Further remarks on a data plotting machine, The Amer-

ican Statistician 14(4): 38+46.

Hartigan, J. A. and Kleiner, B. (1981). Mosaics for contingency tables,
13th Symposium on the Interface, Springer Verlag, New York, pp. 268–
273.

Haslett, J., Bradley, R., Craig, P., Unwin, A. R. and Wills, G. (1991). Dy-
namic Graphics for Exploring Spatial Data with Application to Locat-
ing Global and Local Anomalies, The American Statistician 45(3): 234–
242.

Haughton, D., Deichmann, J., Eshghi, A., Sayek, S., Teebagy, N. and Topi,
H. (2003). A review of software packages for data mining, American
Statistician 57(4): 290–309.

Healy, M. J. R. (1952). Some statistical aspects of anthropometry, JRSS

B 14(2): 164–184.

Heath, D., Resnick, S. and Samorodnitsky, G. (1998). Heavy tails and
long range dependence in on/off processes and associated ﬂuid models,
Mathematics of Operations Research 23: 145–165.

Herman, I. and Marshal, M. (2000). Graphxml - an xml-based graph
description format, Proceedings of the 8th International Symposium on
Graph Drawing, pp. 52 – 62.

Hern ´andez-Campos, F., Marron, J. S., Samorodnitsky, G. and Smith, F. D.
(2002). Variable heavy tailed durations in internet trafﬁc, Performance
Evaluation .
URL: http://www.cs.unc.edu/Research/dirt/proj/marron/VarHeavy
Tails/

256

References

Hochheiser, H. and Shneiderman, B. (2004). Dynamic query tools for time
series data sets, timebox widgets for interactive exploration, Informa-
tion Visualization 3(1): 1–18.

Hofmann, H. (2000). Exploring categorical data: interactive mosaic plots,

Metrika 51(1): 11–26.

Hofmann, H. and Wilhelm, A. (2001). Visual comparison of association

rules, Computational Statistics 16(3): 399–415.

Hohn, N. and Veitch, D. (2003).

Inverting sampled trafﬁc, ACM/SIG-

COMM Internet Measurement Conference, pp. 222–233.

Hothorn, T. and Lausen, B. (2003). Double-Bagging: Combining classiﬁers

by bootstrap aggregation, Pattern Recognition 36(6): 1303–1309.

Huang, C., McDonald, J. A. and Stuetzle, W. (1997). Variable Resolu-
tion Bivariate Plots, Journal of Computational and Graphics Statistics
6(4): 383–396.

Huber, P. J. (1992). Issues in computational data analysis, in Y. Dodge

and J. Whittaker (eds), Computational Statistics, Vol. 2.

Huber, P. J. (1994). Huge data sets, Compstat ’94: Proceedings, eds. Dutter,

R., Grossmann, W., Physica, Heidelberg.

Huber, P. J. (1999). Massive datasets workshop: Four years after, JCGS

8(3): 635–652.

Hummel, J. (1996). Linked bar charts: Analysing categorical data graph-

ically, Computational Statistics 11: 23–33.

Inselberg, A. (1985). The Plane with Parallel Coordinates, The Visual

Computer 1: 69–91.

Kahn, R. and Braverman, A. (1999). What shall we do with the data
we are expecting from upcoming earth observation satellites?, JCGS
8(3): 575–588.

Karagiannis, M. F. T., Molle, M. and Broido, A. (2004). A nonstationary

poisson view of internet trafﬁc, Proceedings of IEEE Infocom.

Kehoe, C. M., Pitkow, J. and Morton, K. (1997). Gvu’s eighth www user
survey report (in color), Research report, Georgia Tech Research Corpo-
ration, Atlanta, GA.

Keim, D. (2000). Designing pixel-oriented visualization techniques: The-
ory and applications, IEEE Transactions on Visualization and Com-
puter Graphics 6(1): 59–78.

Kettaneh, N., Berglund, A. and Wold, S. (2005). Pca and pls with very

large data sets, CSDA 48(1): 69–85.

Kettenring, J. (2001). Massive data sets ... reﬂections on a workshop,
Computing Science and Statistics, Proceedings of the 33rd Symposium
on the Interface, Vol. 33, Interface Foundation, Montreal.

Kraak, M.-J. and Ormeling, F. J. (1996). Cartography — Visualization of

spatial data, Longman.

Lamping, J. and Rao, R. (1995). The hyperbolic browser: A focus+context
technique for visualizing large hierarchies, in S. K. Card, J. D. MacKin-

References

257

lay and B. Shneiderman (eds), Readings in Information Visualization:
Using Vision to Think, Morgan Kaufmann, chapter 4, pp. 382–408.
Leland, W. E., Taqqu, M. S., Willinger, W. and Wilson, D. V. (1994). On the
self-similar nature of ethernet trafﬁc (extended version), IEEE/ACM
Transactions on Networking 2: 1–15.

Mandelbrot, B. B. (1969). Long-run linearity, locally gaussian processes,
h-spectra and inﬁnite variance, International Economic Review 10: 82–
113.

Marchette, D. J. and Wegman, E. J. (2004). Statistical analysis of network

data for cybersecurity, Chance 17(1): 8–18.

Marron, J. S., Hern ´andez-Campos, F. and Smith, F. D. (2002). Mice and
elephants visualization of internet trafﬁc, in W. H ¨ardle and B. R¨onz
(eds), Proceedings of the CompStat 2002, Springer, Berlin, pp. 47–54.
URL: http://www.cs.unc.edu/Research/dirt/proj/marron/Mice Ele-
phants/

McDonald, J. A. (1988).

Interactive graphics for data analysis, in
W. S. Cleveland and M. McGill (eds), Dynamic Graphics for Statistics,
Wadsworth.

McIntosh, A. (1999). Analyzing telephone network data, JCGS 8(3): 611–

619.

McNeill, D. R. and Tukey, J. W. (1975). Higher-order diagnosis of two-way

tables, Biometrics 31(2): 487–510.

Murrell, P. (2005). R Graphics, Chapman & Hall, London.
Nielsen, J. (1994). Usability Engineering, Morgan Kaufmann, San Fran-

cisco.

Nievergelt, J. and Hirichs, K. (1993). Algorithms and Data Structures
with Applications to Graphics and Geometry, Prentice Hall, Englewood
Cliffs, NJ.

Pach, J. (ed.) (2004). Graph Drawing, 12th International Symposium,

Lecture Notes in Computer Science, Springer, New York.

Page, E. S., Healy, M. J. R., Jeffers, J. N. R., Baines, A. and Paddle,
G. M. (1967). Discussion (of statistical programming), Applied Statis-
tics 1967(2): 133–148.

Playfair, W. (2005). Playfair’s Commercial and Political Atlas and Statis-

tical Breviary, Cambridge, London.

Porter, R. (1891). The eleventh census, JASA 2(15): 321–379.
Posse, C. (2001). Hierarchical model-based clustering for large datasets,
Journal of Computational and Graphical Statistics 10(3): 464–486.
Post, F., Nielson, G. and Bonneau, G.-P. (eds) (2002). Data Visualization:

The State of the Art, Kluwer.

Putnam, R. D. (2000). Bowling Alone, Touchstone, New York.
Rao, R. and Card, S. K. (1994). The Table Lens: Merging graphical and
symbolic representations in an interactive focus context visualization
for tabular information, Proc. ACM Conference on Human Factors in

258

References

Computing Systems, CHI, ACM.
URL: citeseer.ist.psu.edu/rao94table.html

Reed, W. J. and Jorgensen, M. (2004). The double pareto-lognormal distri-
bution - a new parametric model for size distribution, Communications
in Statistics -Theory and Methods 33: 1733–1753.

Resnick, S. and Samorodnitsky, G. (1999). Activity periods of an inﬁ-
nite server queue and performance of certain heavy tailed ﬂuid queues,
Queueing Systems 33: 43–71.

Ripley, B. D. (2005). How computing has changed statistics, in A. Davi-
son, Y. Dodge and N. Wermuth (eds), Celebrating Statistics: Papers in
Honour of Sir David Cox on His 80th Birthday, Oxford U.P., pp. 197–
212.

Robertson, G. G., MacKinlay, J. D. and Card, S. K. (1991). Cone trees: an-
imated 3d visualizations of hierarchical information, CHI ’91: Proceed-
ings of the SIGCHI conference on Human factors in computing systems,
ACM Press, pp. 189–194.

Ruggles, S. and Sobek, M. (1997). Integrated Public Use Microdata Se-
ries: Version 2.0, Minneapolis: Historical Census Projects, University
of Minnesota.
URL: http://www.ipums.org

Rundensteiner, E. A., Ward, M. O., Yang, J. and Doshi, P. R. (2002). Xmd-
vtool: visual interactive data exploration and trend discovery of high-
dimensional data sets, SIGMOD ’02: Proceedings of the 2002 ACM SIG-
MOD international conference on Management of data, ACM Press,
New York, NY, pp. 631–631.

Schapire, R. E. (1999). A brief introduction to boosting, 16th International
Joint Conference on Artiﬁcial Intelligence, Morgan Kaufmann Publish-
ers Inc., San Francisco, CA.

Scott, D. (1992). Multivariate Density Estimation — Theory, Practice, and

Visualization, Wiley, New York, NY.

Shneiderman, B. (1996). The eyes have it: A task by data type taxonomy
for information visualizations, VL ’96: Proceedings of the 1996 IEEE
Symposium on Visual Languages, IEEE Computer Society, p. 336.

Smith, F. D., Hern ´andez-Campos, F., Jeffay, K. and Ott, D. (2001). “What
TCP/IP protocol headers can tell us about the web”, Proceedings of ACM
SIGMETRICS 2001/Performance 2001, pp. 245–256.

Spence, R. (2000). Information Visualization, Addison Wesley, Harlow,

England.

Stolte, C., Tang, D. and Hanrahan, P. (2002). Multiscale visualization
using data cubes, Proceedings of InfoViz ’02, IEEE Symposium on In-
formation Visualization, IEEE Computer Society Press.

Student

(1931).

The lanarkshire milk experiment, Biometrika

23(3/4): 398–406.

References

259

Swayne, D. F., Cook, D. and Buja, A. (1991). Xgobi: Interactive graphics in
the x window system with a link to S, American Statistical Association:
Proceedings of the Section on Statistical Graphics.

Swayne, D. F. and Klinke, S. (1999). Editorial, Computational Statistics

14(1).

Swayne, D. F., Lang, D. T., Buja, A. and Cook, D. (2003). GGobi: evolving
from XGobi into an extensible framework for interactive data visual-
ization, Computational Statistics and Data Analysis 43(4): 423–444.
Taqqu, M. S. and Levy, J. (1986). Progress in probability and statistics,
Birkhaeuser, Boston, chapter Using renewal processes to generate LRD
and high variability, pp. 73–89.

Theus, M.

(1996).

Theorie und Anwendung interaktiver statis-
tischer Graphik, Augsburger Mathematisch-Naturwissenschaftliche
Schriften, Band 14, Wissner, Augsburg.

Theus, M. (2002a). Geographical information systems, Handbook of Data

Mining and Knowledge Discovery, Oxford University Press.

Theus, M. (2002b). Interactive Data Visualization using Mondrian, Jour-

nal of Statistical Software 7(11).

Theus, M., Hofmann, H. and Wilhelm, A. (1998). Selection sequences —
interactive analysis of massive data sets, in D. Scott (ed.), Proceedings
of the 29th Symposium on the Interface: Computing Science and Statis-
tics, pp. 439–444.

Theus, M. and Lauer, S. (1999). Visualizing loglinear models, Journal of

Computational and Graphical Statistics 8(3): 396–412.

Thomas, J. and Cook, K. (eds) (2005). Illuminating the Path: The Research

and Development Agenda for Visual Analytics, IEEE Press.

Tierney, L. (1991). LispStat: An Object-Orientated Environment for Sta-

tistical Computing and Dynamic Graphics, Wiley, New York, NY.

Tufte, E. R. (1983). The Visual Display of Quantitative Information,

Graphic Press, Cheshire, Connecticut.

Tukey, J. W. and Tukey, P. (1985). Computer graphics and exploratory
data analysis: An introduction, Sixth Annual Conference and Expo-
sition: Computer Graphics, National Computer Graphics Association,
pp. 773–785.

Tukey, J. W. and Tukey, P. (1990). Strips displaying empirical distribu-
tions: Textured dot strips, Technical report, Bellcore Technical Memo-
randum.

Turo, D. and Johnson, B. (1992).

Improving the visualization of hier-
archies with treemaps: Design issues and experimentation, 3rd IEEE
Conference on visualization.

Unwin, A. R. (1999). Requirements for interactive graphics software for
exploratory data analysis, Journal of Computational Statistics 1: 7–22.
Unwin, A. R., Hawkins, G., Hofmann, H. and Siegl, B. (1996). Interactive
graphics for data sets with missing values - manet, JCGS 5(2): 113–
122.

260

References

Unwin, A. R., Volinsky, C. and Winkler, S. (2003). Parallel coordinates
for exploratory modelling analysis, Computational Statistics & Data
Analysis 43(4): 553–564.

Unwin, A. R., Wills, G. and Haslett, J. (1990). REGARD - Graphical Anal-
ysis of Regional Data, ASA Proceedings of the Section on Statistical
Graphics, American Statistical Association, Alexandria, VA, pp. 36–41.
Urbanek, S. and Theus, M. (2003). iPlots — High Interaction Graphics

for R, Proceedings of the DSC 2003 Conference.

Velleman, P. F. (1997). DataDesk Version 6.0 — Statistics Guide, Data

Description Inc., Ithaca, NY.

Venables, W. N. and Ripley, B. D. (1999). Modern Applied Statistics with

S+, 3rd edn, Springer, New York.

Ward, M. O., Peng, W. and Wang, X. (2004). Hierarchical visual data
mining for large-scale data, Computational Statistics 19(1): 147–158.
Wegman, E. J. (1990). Hyperdimensional Data Analysis Using Parallel
Coordinates, Journal of American Statistics Association 85: 664–675.
Wegman, E. J. (1991). The Grand Tour in k-Dimensions, Technical Re-
port 68, Center for Computational Statistics, George Mason University.
Wegman, E. J. (1995). Huge data sets and the frontiers of computa-
tional feasibility, Journal of Computational and Graphical Statistics
4(4): 281–295.

Wegman, E. J. (2003). Visual data mining, Statistics in Medicine

22: 1383–1397 + 10 color plates.

Wegman, E. J. and Carr, D. B. (1993). Statistical graphics and visualiza-
tion, in C. R. Rao (ed.), Handbook of Statistics, Vol. 9, North Holland,
Amsterdam, pp. 857–958.

Wegman, E. J., Poston, W. L. and Solka, J. L. (1998). Image Grand Tour,
Automatic Target Recognition VIII - Proceedings of SPIE, 3371, SPIE,
Bellingham, WA, pp. 286–294. Republished, Vol 6: Automatic Target
Recognition. The CD-ROM, (Firooz Sadjadi, ed.), SPIE: Bellingham,
WA, 1999.

Wegman, E. J. and Solka, J. L. (2002). On some mathematics for visual-

izing high dimensional data, Sankhya 64(2): 429–452.

Wegman, E. J. and Solka, J. L. (2005). Statistical data mining, Handbook

of Statistics, North Holland, Amsterdam, pp. 1–44.

Whittaker, J. (1990). Graphical Models on Applied Multivariate Statis-

tics, John Wiley and Sons, New York.

Wilkinson, L. (2005). The Grammar of Graphics, 2nd edn, Springer, New

York.

Wills, G. (1997). Visual exploration of large structured data sets, New
Techniques and Technologies for Statistics II, IOS Press, Washington
DC.

Wills, G., Unwin, A. R., Haslett, J. and Craig, P. (1990). Dynamic inter-
active graphics for spatially referenced data, Fortschritte der Statistik-
Software 2, Gustav Fischer Verlag, Stuttgart, pp. 278–287.

References

261

Yates, F. (1966). Computers, the second revolution in statistics, Biomet-

rics 22(2): 233–251.

Zhang, Z.-L., Ribeiro, V. J., Moon, S. B. and Diot, C. (2003). Smalltime
scaling behaviors of internet backbone trafﬁc: an empirical study, Pro-
ceedings of IEEE Infocom.

Authors

Adams, N. M. . . . . . 15, 16, 21, 184, 255
Adams, R. . . . . . . . . . . . . . . . . . 20, 99, 251
Andrews, D. . . . . . . . . . . . . . . . . . . 144, 251
Asimov, D. . . . 5, 40, 127, 145, 251, 252

Chipman, H. . . . . . . . . . . . . . . . . . 178, 253
Cho, K. . . . . . . . . . . . . . . . . . . . . . . . 205, 253
Clemons, T. . . . . . . . . . . . . . . . . . . . . 16, 253
Cleveland, W. S. . . . . 5, 7, 91, 110, 127,

Baines, A. . . . . . . . . . . . . . . . . . . . . . 21, 257
Becker, R. A. . . . . . . . . . . . . . . . . . 127, 251
Bederson, B. . . . . . . . . . . . . . . . . . 178, 255
. . . . . . . . . . . . . . . . . . 17, 256
Berglund, A.
Bertin, J. . . . . . . . . . . . . . . . . . . . . . . . 7, 251
Bestavros, A. . . . . . . . . . . . . . . . . . 203, 253
Blunt, G. . . . . . . . . . . 15, 16, 21, 184, 255
Bolton, R. . . . . . . . . . . . . . . . . . . . . . . . 2, 251
Bonneau, G-P. . . . . . . . . . . . . . . . . . . 7, 257
Box, G. P. E. . . . . . . . . . . . . . . . . . . 215, 251
Bradley, R. . . . . . . . . . . . . . . . . . . . 128, 255
Braverman, A. . . . . . . . . . . . 15, 251, 256
Breiman, L. . . . . . . . . . . . . . 177, 198, 251
Broido, A. . . . . . . . . . . . . . . . . . . . . 204, 256
Buja, A. 5, 40, 127, 128, 144, 145, 163,

251–253, 258, 259

Cabrera, J. . . . . . . . . . . . . . . . . . . . 127, 253
Cao, J. . . . . . . . . . . . . . . . . . . . . . . . . 204, 252
Cappelli, C. . . . . . . . . . . . . . . . . . . 183, 252
Card, S. K. . . 6, 52, 128, 158, 192, 252,

256–258

Carr, D. A. . . . . . . . . . . . . . . . . . . . . . 47, 252
. . 8, 14, 15, 21, 47, 67, 127,
Carr, D. B.

128, 144, 145, 252, 260

Chambers, J. . . . . . . . . . . . . . . . . 8, 14, 253
Chaudhuri, P. . . . . . . . . . . . . . . . . 223, 253

128, 204, 251–254, 257

Coale, A. J. . . . . . . . . . . . . . . . . . . . . 20, 253
Coleman, M. K. . . . . . . . . . 159, 160, 253
Cook, D. . . 40, 125, 127, 128, 144, 145,

163, 252, 253, 258, 259

Cook, K.A. . . . . . . . . . . . . . . . . . . . . . . 9, 259
Cortes, C. . . . . . . . . . . . . . . . . . . . . 130, 254
Courbois, J-Y. P. . . . . . . . . . . . . . . . 47, 252
Cox, D. R. . . . . . . . . . . 203, 215, 251, 253
Craig, P. . . . . . . . . . . . . 128, 163, 255, 260
Crovella, M. E. . . . . . . . . . . . . . . . 203, 253
Crowder, M. . . . . . . . . . . . . . . . . . . . . 2, 251
Cvek, U. . . . . . . . . . . . . . . . . . . . . . . 227, 255

David, H. A. . . . . . . . . . . . . . . . . . . 203, 253
David, H. T. . . . . . . . . . . . . . . . . . . 203, 253
Davidson, R. . . . . . . . . . . . . . . . . . 162, 253
Davison, A.C. . . . . . . . . . . . . . . . 2, 19, 258
Dawson, R. J. M. . . . . . . . . . . . . . 107, 253
Deichmann, J. . . . . . . . . . . . . . . . . . 21, 255
Denison, D. . . . . . . . . . . . . . . . . . . 204, 252
Derthick, M. . . . . . . . . . . . . . . . . . 227, 255
Di Battista, G. . . . . . . . . . . 158, 159, 253
Dimsdale, B. . . . . . . . . . . . . . . . . . 145, 253
Diot, C. . . . . . . . . . . . . . . . . . . . . . . . 204, 261
Dodge, Y. . . . . . . . . . . . . 2, 9, 19, 256, 258
. . . . . . . . . . . . . . . . . . 144, 258
Doshi, P. R.
Downey, A. B. . . . . . . . . . . . 204, 253, 254

264

Authors

Dufﬁeld, N. G. . . . . . . . . . . . . . . . . 205, 254
DuMouchel, W. . . . . . . . . . . . . . . . 130, 254
Dykes, J. . . . . . . . . . . . . . . . . . . . . . . 47, 254

Hirichs, K. . . . . . . . . . . . . . . . . . . . 161, 257
Hochheiser, H. . . . . . . . . . . . . . 51, 78, 256
Hofmann, H. 78, 81, 87, 105, 114, 163,

Eades, P. . . . . . . . . . . . . . . . . 158, 159, 253
Eberlein, E. . . . . . . . . . . . . . . . . . . 203, 259
Eddy, W. F. . . . . . . . . . . . . . . . . . . . . 15, 254
Eick, S. G. 8, 60, 98, 108, 111, 163, 254
Eshghi, A . . . . . . . . . . . . . . . . . . . . . . 21, 255

Fayyad, U. . . . . . . . . . . . . . . . . . . . . . . 6, 254
Fisher, R. A. . . . . . . . . . . . . . . . . . . . . 2, 254
Fisherkeller, M. A. . . . . . . . . . . . . 91, 254
Fitzgerald, M. . . . . . . . . . . . . . . . . . 15, 254
Friedman, J. H.
. 55, 91, 177, 251, 254
Friendly, M. . . . . . . . . . . . . . . . . . . 114, 254
Furnas, G. W. . . . . . . . . . . . . . . . . 192, 254

Galton, F. . . . . . . . . . . . . . . . . . . . . . . . 3, 254
Ganti, V. . . . . . . . . . . . . . . . . . . . . . 202, 254
Gaskins, R. A. . . . . . . . . . . . . . . . . . 14, 255
Gehrke, J. E. . . . . . . . . . . . . . . . . . 202, 254
Gelman, A. . . . . . . . . . . . . . . . . . . . . . 5, 254
Genovese, C.
. . . . . . . . . . . . . . . . . . 15, 254
George, E. . . . . . . . . . . . . . . . . . . . . 178, 253
Gong, W. . . . . . . . . . . . . . . . . . . . . . 204, 254
Gonz ´alez-Ar´evalo, B. . . . 203, 212, 215,

216, 254

Good, I. J. . . . . . . . . . . . . . . . . . . . . . 14, 255
Grinstein, G. . . . . . . . . . 6, 227, 254, 255
Grosjean, J. . . . . . . . . . . . . . . . . . . 178, 255

Han, Y. . . . . . . . . . . . . . . . . . . . . . . . 130, 255
Hand, D. J. 2, 15, 16, 21, 184, 251, 255
Hannig, J. . . . . . . . . . . . . . . . . . . . . 204, 255
Hanrahan, P. . . . . . . . . . . . . . . . . . . 93, 258
Hansen, M. . . . . . . . . . . . . . . . . . . 204, 252
H ¨ardle, W.
. . . . . . . . . . . . . . . . . . . 205, 257
Harel, D. . . . . . . . . . . . . . . . . . . . . . 162, 253
Harris, B.
. . . . . . . . . . . . . . . . . . . . . 13, 255
Hartigan, J. A. . . . . . . . . . . . 34, 114, 255
Haslett, J. . . . . . . . . . . 128, 163, 255, 260
Haughton, D. . . . . . . . . . . . . . . . . . . 21, 255
Hawkins, G. . . . . . . . . . . . . . . 78, 163, 259
Healy, M. J. R. . . . . . . . . 19, 21, 255, 257
Heath, D.
. . . . . . . . . . . . . . . . . . . . 203, 255
Herman, I. . . . . . . . . . . . . . . . . . . . 172, 255
Hern ´andez-Campos, F. . 203–205, 212,

256, 259

Hohn, N. . . . . . . . . . . . . . . . . . . . . . 205, 256
Holmes, B. Mallick C. . . . . . . . . 204, 252
Holmes, C. . . . . . . . . . . . . . . . . . . . 204, 252
Hothorn, T. . . . . . . . . . . . . . . . . . . . 186, 256
Huang, C. . . . . . . . . . . . . . . . . . . . . 132, 256
Huber, P. J. . . . . . . . . . . . . . . . 8, 9, 19, 256
Hummel, J. . . . . . . . . . . . . . . . . . . 110, 256
Hurley, C. . . . . 5, 40, 127, 145, 251–253

Inselberg, A. . . . 41, 127, 144, 145, 256

Jeffay, K. . . . . . . . . . . . . . . . . . . . . . 205, 258
Jeffers, J. N. R. . . . . . . . . . . . . . . . . 21, 257
Johnson, B.
. . . . . . . . . . . . . . . . . . 196, 259
Johnson, T. . . . . . . . . . . . . . . . . . . . 130, 254
Jorgensen, M. . . . . . . . . . . . . . . . . 204, 258

Kahn, R.
. . . . . . . . . . . . . . . . . . . . . . 15, 256
Karagiannis, M. F. T. . . . . . . . . . 204, 256
Karr, A. F. . . . . . 8, 60, 98, 108, 111, 254
Kehoe, C. M. . . . . . . . . . . . . . . . . . 108, 256
Keim, D. . . . . . . . . . . . . . . . . . . . . . . . . 9, 256
Kelly, M. G. . . . . . . . 15, 16, 21, 184, 255
Kettaneh, N. . . . . . . . . . . . . . . . . . . 17, 256
Kettenring, J. . . . . . . . . . . . . . . . . . 15, 256
Kleiner, B. . . . . . . . . . . . . . . . . 34, 114, 255
Klinke, S . . . . . . . . . . . . . . . . . . . . . . . . . . 259
Kraak, M-J. . . . . . . . . . . . . . . . . . . . 47, 254

Lamping, J. . . . . . . . . . . . . . . . . . . 192, 256
Lang, D. T. . . . . . . . . . . . . . . 128, 144, 259
Lauer, S.
. . . . . . . . . . . . . . . . . . . . . . 35, 259
Lausen, B. . . . . . . . . . . . . . . . . . . . 186, 256
Lazar, N. . . . . . . . . . . . . . . . . . . . . . . 15, 254
. . . . . . . . . . . . . . . . 203, 257
Leland, W. E.
Levy, J. . . . . . . . . . . . . . . . . . . . . . . . 203, 259
Li, Y. . . . . . . . . . . . . . . . . . . . . . . . . . . 47, 252
Lin, D. . . . . . . . . . . . . . . . . . . . . . . . 204, 252
Littleﬁeld, J. S.
. . . . 14, 15, 21, 67, 252
Littleﬁeld, R. J. . . . . 14, 15, 21, 67, 252
Liu, Y. . . . . . . . . . . . . . . . . . . . . . . . . 204, 254
Lund, C. . . . . . . . . . . . . . . . . . . . . . . 205, 254
Luo, Q. . . . . . . . . . . . . . . . . . . . . . . . 144, 252

215, 216, 254, 255, 257, 258

MacEachren, A. . . . . . . . . . . . . . . . 47, 254

MacKinlay, J. D. 6, 128, 158, 192, 252,

256, 258

Mallick, B. . . . . . . . . . . . . . . . . . . . 204, 252
Mandelbrot, B. B. . . . . . . . . . . . . 203, 257
Marchette, D. J. . . . . . . . . . . . . . . . 17, 257
Marron, J. S. . 204, 205, 212, 215, 216,

223, 253–255, 257

Marron, S.
. . . . . . . . . . . . . . . . . . . . . . . . 203
Marshal, M. . . . . . . . . . . . . . . . . . . 172, 255
McCulloch, R. . . . . . . . . . . . . . . . . 178, 253
McDonald, J. A. . . 5, 91, 132, 251, 256,

257

McGill, M. . . . . . . . . . . . . . 5, 91, 251, 257
McGill, M. E. . . 91, 110, 127, 128, 251,

253, 254

McIntosh, A. . . . . . . . . . . . . . . . . . . 15, 257
McNeill, D. R. . . . . . . . . . . . . . . . . . 18, 257
Miller, L. . . . . . . . . . . . . . . . . . . . . . . . . . . 125
Misra, V. . . . . . . . . . . . . . . . . . . . . . 204, 254
Mockus, A. . . . . . . . . . . . . . . . . . . . . 15, 254
Mola, F. . . . . . . . . . . . . . . . . . . . . . . 183, 252
Molle, M. . . . . . . . . . . . . . . . . . . . . . 204, 256
Moon, S. B. . . . . . . . . . . . . . . . . . . . 204, 261
Morton, K. . . . . . . . . . . . . . . . . . . . 108, 256
Moustafa, R. . . . . . . . . . . . . . . . . . . . . . . 143
Murrell, P. . . . . . . . . . . . . . . . . . . . . . . 7, 257

Nicholson, W. L.
. . . 14, 15, 21, 67, 252
Nielsen, J. . . . . . . . . . . . . . . . . . . . . . 84, 257
Nielson, G. . . . . . . . . . . . . . . . . . . . . . . 7, 257
Nievergelt, J. . . . . . . . . . . . . . . . . . 161, 257

Olsen, A. R. . . . . . . . . . . . . . . . . . . . 47, 252
Olshen, R. . . . . . . . . . . . . . . . . . . . . 177, 251
. . . . . . . . . . . . . . . . 47, 256
Ormeling, F. J.
. . . . . . . . . . . . . . . . . . . . . . . 205, 258
Ott, D.

Pach, J.
. . . . . . . . . . . . . . . . . . . . . . 158, 257
Paddle, G. M. . . . . . . . . . . . . . . . . . . 21, 257
Pagano, M. . . . . . . . . . . . . . . . . . . . . 16, 253
Page, E. S. . . . . . . . . . . . . . . . . . . . . . 21, 257
Park, C. . . . . . . . 203, 212, 215, 216, 254
Peng, W. . . . . . . . . . . . . . . . . . . . . . . . . 8, 260
Pierson, S. M. . . . . . . . . . . . . . . . . . 47, 252
Pitkow, J.
. . . . . . . . . . . . . . . . . . . . 108, 256
Plaisant, C. . . . . . . . . . . . . . . . . . . 178, 255
Playfair, W. . . . . . . . . . . . . . . . . . . . . . 2, 257
Porter, R.P. . . . . . . . . . . . . . . . . . . . . 17, 257
Posse, C. . . . . . . . . . . . . . . . . . . . . . 130, 257

Authors

265

Post, F.
. . . . . . . . . . . . . . . . . . . . . . . . . 7, 257
Poston, W. L. . . . . . . . . . . . . . . . . . 128, 260
Pregibon, D. . . . . . . . . . . . . . . . . . . 130, 254
Putnam, R. D. . . . . . . . . . . . . . . . . . 21, 257

Ramakrishnan, R. . . . . . . . . . . . 202, 254
Rao, C. R. . . . . . . . . . . . . . . . . . . 8, 145, 260
Rao, R. . . . . . . . . . . . . . . 52, 192, 256, 257
Reed, W. J. . . . . . . . . . . . . . . . . . . . 204, 258
Resnick, S. . . . . . . . . . . . . . . 203, 255, 258
Ribeiro, V. J. . . . . . . . . . . . . . . . . . 204, 261
Riedi, R. . . . . . . . . . . . . . . . . . . . . . . 204, 255
Ripley, B. D. . . . . . . . . 2, 17, 19, 258, 260
Robertson, G. G. . . . . . . . . . . . . . 158, 258
R¨onz, B. . . . . . . . . . . . . . . . . . . . . . . 205, 257
Ruggles, S. . . . . . . . . . . . . . . . . . . . 185, 258
Rundensteiner, E. A. . . . . . . . . . 144, 258

Samorodnitsky, G. . 203, 204, 255, 258
Sayek, S. . . . . . . . . . . . . . . . . . . . . . . 21, 255
Schapire, R. E. . . . . . . . . . . . . . . . 198, 258
Scott, D. . . . 36, 49, 50, 67, 78, 258, 259
. . . 6, 51, 78, 92, 128,
Shneiderman, B.

162, 192, 252, 256, 258

Shyu, M-J. . . . . . . . . . . . . . . . . . . . 127, 251
Siciliano, R. . . . . . . . . . . . . . . . . . . 183, 252
Siegl, B. . . . . . . . . . . . . . . . . . . 78, 163, 259
Smith, F. D. . . . 204, 205, 255, 257, 258
Sobek, M. . . . . . . . . . . . . . . . . . . . . 185, 258
Solka, J. L. . . . . . . . . . 128, 145, 154, 260
Spence, R. . . . . . . . . . . . . . . . . . 6, 128, 258
Stephan, F. F.
. . . . . . . . . . . . . . . . . 20, 253
Stolte, C. . . . . . . . . . . . . . . . . . . . . . . 93, 258
Stone, C. . . . . . . . . . . . . . . . . . . . . . 177, 251
Student . . . . . . . . . . . . . . . . . . . . . . . . . 9, 258
Stuetzle, W. . . . . . . . . . . . . . . . . . . 132, 256
Sun, D. X. . . . . . . . . . . . . . . . . . . . . 204, 252
Swayne, D. F. . 128, 144, 163, 258, 259

Tamassia, R. . . . . . . . . . . . . 158, 159, 253
Tang, D. . . . . . . . . . . . . . . . . . . . . . . . 93, 258
Taqqu, M. S. . . . . . . . . . . . . 203, 257, 259
Teebagy, N. . . . . . . . . . . . . . . . . . . . . 21, 255
Theus, M. . . . 31, 35, 47, 55, 71, 75, 78,

110, 144, 227, 259, 260

Thomas, J.J . . . . . . . . . . . . . . . . . . . . . 9, 259
Tierney, L. . . . . . . . . . . . . . . 128, 163, 259
Tollis, I. . . . . . . . . . . . . . . . . . 158, 159, 253
. . . . . . . . . . . . . . . . . . . . . . . 21, 255
Topi, H.

266

Authors

Towsley, D. . . . . . . . . . . . . . . . . . . . 204, 254
Trutschl, M. . . . . . . . . . . . . . . . . . . 227, 255
Tufte, E. R. . . . . . . . . . . . . . . . . . . . . . 7, 259
Tukey, J. W. . . 2, 18, 91, 193, 254, 257,

259
Tukey, P.
. . . . . . . . 2, 128, 193, 252, 259
Turo, D. . . . . . . . . . . . . . . . . . . . . . . 196, 259

Unwin, A. R. . . . . 1, 73, 75, 78, 97, 128,

144, 163, 227, 255, 259, 260

Urbanek, S. . . . . . . . . . . . . . 144, 177, 260

Veitch, D. . . . . . . . . . . . . . . . . . . . . 205, 256
Velleman, P. F. . . . . . . . . . . . 78, 163, 260
Venables, W. N. . . . . . . . . . . . . . . . . 17, 260
Volinsky, C . . . . . . . . . . . . . . . . . . . 130, 254

Wang, X. . . . . . . . . . . . . . . . . . . . . . . . . 8, 260
Ward, M. O. . . . . . . . . . . 8, 144, 258, 260
Wegman, E. J. . . . . . . 8, 9, 17, 127, 128,
143–145, 150, 152, 154, 252, 257,
260

Welling, J. . . . . . . . . . . . . . . . . . . . . . 15, 254
Wermuth, N. . . . . . . . . . . . . . . . . 2, 19, 258
Whittaker, J. . . . . . . . . . 9, 107, 256, 260
Wierse, A. . . . . . . . . . . . . . . . . . . . . . . 6, 254
Wilhelm, A. . . . . . . . . . . . 78, 81, 256, 259
Wilkinson, L. . . . . . . . . . . 7, 51, 173, 260
Willinger, W. . . . . . . . . . . . . . . . . . 203, 257
Wills, G. . 128, 157, 163, 166, 168, 254,

255, 260

Wilson, D. V. . . . . . . . . . . . . . . . . . 203, 257
Winkler, S. . . . . . . . . . . . . . . . 97, 144, 260
Wold, S. . . . . . . . . . . . . . . . . . . . . . . . 17, 256
. . . . . . . . . . . . . . . . . . . . 20, 99, 251
Wu, M.

Yang, J. . . . . . . . . . . . . . . . . . . . . . . 144, 258
Yates, F. . . . . . . . . . . . . . . . . . 1, 14, 19, 261
Yu, B. . . . . . . . . . . . . . . . . . . . . . . . . 204, 252

Zhang, Y. . . . . . . . . . . . . . . . . . . . . . . 47, 252
Zhang, Z.-L. . . . . . . . . . . . . . . . . . . 204, 261

Index

Symbols
α

blending . . . . 62, 69, 82, 91, 193, 194,

225, 235

channel . . . . . . . . . . . . . . . . . . . . . . . . . . . 69

A
accumulations . . . . . . . . . . 36, 49, 64, 234
aggregation . . . . . . 51, 99, 194, 200, 229
anchorpoint . . . . . . . . . . . . . . 37, 57, 67, 85
Andrews plot. . . . . . . . . . . . . . . . . . . . . . .144
animation . . . . . . . . . . . . . . . . . . . . . . . . . . 135
anti-aliasing . . . . . . . . . . . . . . . . . . . . . . . 164
area-based plot . . . . see plot, area-based
ASH . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 36, 68
aspect ratio . . . . . . . . . . . .54, 82, 115, 145
averaging bars . . . . . . . . . . . . . . . . . . . . . 111

B
bagging . . . . . . . . . . . . . . . . . . . . . . . . . . . . 198
barchart . . . . . . . . . . . . . . . . . . . . 32, 58, 106
sorting . . . . . . . . . see sorting, barchart
biased sampling . . see sampling, biased
binning. . . . . . . . . . . . . . . . . . . . 67, 128, 129
binwidth . . . . . . . . . . . . . 37, 57, 67, 82, 85
bird’s eye view . . . . . . . . . . 61, 90, 92, 192
bitmap graphics . . . . . . . . . . . . . . . . . . . . . 22
boosting . . . . . . . . . . . . . . . . . . . . . . . . . . . . 198
bootstrapping . . . . . . . . . . . . . . . . . . . . . . 198
Box–Cox biased samplingsee sampling,

Box–Cox biased

boxplot . . . . . . . . . . . . . . 36, 62, 71, 96, 229
British National Corpus . . . . . . . . . . . . . . 6
brushing . . . . . . . . . . . . . . . . . . . . . . . 77, 136

colour . . . . . . . . . . . . . . . . . . . . . . . . . . . . 144
saturation . . . . . . . . . . . . . . . . . . . . . . . 143
bump-hunting . . . . . . . . . . . . . . . . . . . . . . . 14
bursty behaviour. . . . . . . . . . . . . .203, 209

C
C4.5. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .185
calibrating . . . . . . . . . . . . . . . . . . . . . . . . . 116
CASSATT . . . . . . . . . . . . . . . . . . . . . . . . . . . 144
categorical data . . . see data, categorical
censored zooming . . . . . . . . . see zooming,

censored

clipping . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 62
cluster . . . . . . . . . . . . . . 2, 42, 61, 129, 130
colour brushing . . . see brushing, colour
command-line . . . . . . . . . . . . . . . . . . . . . . . 74
common scaling . . . 44, 82, 97, 132, 237
commonality of ﬂow rates. . . . . . . . . .221
complexity . . . . . . . . . . . . . . . . . . . . . . . 20, 85
conditioning . . . . . . . . . . . 44, 82, 127, 229
conﬁdence bands . . . . . . . . . . . . . . . . . . . . 45
conﬁdence interval . . . . . . . . . . . . . . . . . . 58
consistency . . . . . . . . . . . . . . . . . . . . . 84, 228
context preservation . . . . . . . . . . . . . . . . 85
contour plot . . . . . . . . . . . see plot, contour
correlation . . . . . . . . . . . . . . . . . . . . . . . . . . 42
cross-validation . . . . . . . . . . . . . . . 182, 185
crossover effect . . . . . . . . . . . . . . . . . . . . 145
CrystalVision . . . . . . . . . . . . . . . . . . . . . . . 154
cue . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 85, 86

D
data

categorical . . . . . . . . . . . . . . . . . . . . . . . . 31

268

Index

continuous . . . . . . . . . . . . . . . . . . . . . . . . 36
discrete . . . . . . . . . see data, categorical
geographical . . . . . . . . . . . . . . . . . . . . . . 47
ordinal. . . . . . . . . . . . . . . . . . . . . . . . . . .179
quality . . . . . . . . . . . . . . . . . . . . . . . . . . . . 19
scale . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 31
mixed . . . . . . . . . . . . . . . . . . . . . . . . . . . 44
data cleaning . . . . . . . . . . . . . . . . 2, 19, 141
data cubes . . . . . . . . . . . 47, 100, 107, 143
Data Desk . . . . . . . . . . 78, 81, 86, 90, 128
data mining . . . . . . . . . . . 21, 56, 143, 167
data squashing . . . . . . . . . . . . . . . . . . . . 130
data visualization . . . . . . . . . . . . . . . . . . . . 4
. . . . . . . . . . . . . . . . see also visualization
database. . . . . . . . . . . . . . . . . . . . . . . . .18, 67
IPUMS . . . . . . . . . . . . . . . . . . . . . . . . . . 185
dataset . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 25
2004 Cars . . . . . . . . . . . . . . . . . 25, 36, 42
Athens 2004 Decathlon . . . 25, 74, 76
Automobile . . . . . . . . . . . . . . . . . . . . . . 150
Bank Deals . . . . . . . 26, 58, 68, 92, 100
Birth Weight . . . . . . . . . . . . . . . . . . . . . . 52
Bowling Alone . . . . . . . . . . . . . . . . 25, 77
Hyperspectral . . . . . . . . . . . . . . . . . . . 152
InfoVis. . . . . . . . . . . . . . . . . . . . . . . . . . .227
International Calling Fraud . . . . . 167
Internet Usage . . . . 26, 108, 110, 112
IPUMS . . . . . . . . . . . . . . . . . . . . . . . . . . 185
Olive Oils . . . . . . . . . . . . 25, 65, 77, 127
Rochdale. . . . . . . . . . . . . . . . . . . . . . . . .107
spatio-temporal. . . . . . . . . . . . . . . . . .125
Titanic . . . . . . . . . . . . . . . . . . . . . . . 80, 107
US Census . . . . . . . . . 26, 44, 52, 57, 93
weighted. . . . . . . . . . . . . . . . . . . . . . . . .107
density estimation 36, 62, 67, 131, 194,

223

depth shading . . . . . . see shading, depth
deviance . . . . . . . . . . . . . . . . . . . . . . . . . . . 179
dialog box . . . . . . . . . . . . . . . . . . . . . . . 74, 85
dimension reduction . . . . . 154, 229, 237
direct manipulation . . . . . . . . . . . . . 74, 83
discrete data . . . . . . see data, categorical
discretization . . . . . . 45, 63, 99, 194, 196
displays . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 21
distribution . . . . . . . . . . . . . . . . . . . . . . . . . 39
joint. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .50
dotplot . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 36
double-bagging. . . . . . . . . . . . . . . . . . . . .186

doubledecker plot . . . . . . . . . . . . . see plot,

doubledecker

drilling down . . . . . . . . . . 79, 90, 158, 229
dynamic graphics . . . . . . . . .see graphics,

dynamic

E
EDA . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2, 85
edges . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 159
entropy . . . . . . . . . . . . . . . . . . . . . . . . . . . . 179
Excel . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 19
ExploreN . . . . . . . . . . . . . . . . . . . . . . . . . . . 144

F
fence . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 62
inner and outer . . . . . . . . . . . . . . . . . . . 38
ﬁltering . . . . . . . . . . . . . . . . . . . . . . . . . . . . 158
ﬁsheye . . . . . . . . . . . . . . . . . . . . . . . . . 92, 169
ﬂuctuation diagram . . . . see mosaic plot
forest. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .198

G
gaps in data . . . . . . . . . . . . . 39, 40, 49, 82
GAUGUIN . . . . . . . . . . . . . . . . . . . . . . . . . . . 52
generalized parallel coordinate

geometry . . . . . . . . . . . . . . . . . . . . . 145
geographical data. . . . . . . . . . . . .see data,

geographical

GGobi . . . . . . . . . . . . . . . . . . . . . . . . 128, 144
Gini index. . . . . . . . . . . . . . . . . . . . . . . . . .183
global . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4, 8
glyph . . . . . . . . . . . . . . . . . 31, 47, 55, 62, 91
glyph-based plots see plot, glyph-based
Grand Tour . . . . . . . . . . . . . . . . . . . . 39, 145
graph . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 157
deﬁnition . . . . . . . . . . . . . . . . . . . . . . . . 172
layout. . . . . . . . . . . . . . . . . . . . . . . . . . . .158

graphics

dynamic . . . . . . . . . . . . . . . . . . . . . . . . . 125
formats . . . . . . . . . . . . . . . . . . . . . . . . . . . 22
presentation . . . . . . . . . . . . . . . . . . . . . 247
scaling up . . . . . . . . . . . . . . . . . . . . . . . . . 55
statistical . . . . . . . . . . . . . . . . . . . . . . . . . 31
greedy algorithm . . . . . . . . . . . . . . . . . . 178
grid-based . . . . . . . . . . . . . . . 114, 115, 124

H
h-spread. . . . . . . . . . . . . . . . . . . . . . . . . . . . .38
heat map . . . . . . . . . . . . . . . . . . . . . . . . . . . . 49

heavy tails . . . . . . . . . . . . . . . . . . . . . . . . . 204
highlighting . 77, 77, 89, 115, 127, 163,

188

tonal . . . . . . . . . . . . . . . . . . . . . . 62, 65, 71
hinge . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 62
upper and lower . . . . . . . . . . . . . . . . . . 37
histogram . . . . . . . . . . . . . . . . . . . 36, 57, 82
Hollerith machines . . . . . . . . . . . . . . . . . . 17
hotselection . . . . . . . . . . . . . . . . . . . . . . . . . 90
Huber’s classiﬁcation . . . . . . . . . . . . . . . 10

I
image map . . . . . . . . . . . . . . . . . . . . . . . . . . 49
information visualization . . . . . . . . . . . . 6
interaction . . . . . . . . . . . . . . . . . 73, 74, 125
interactivity . . . . . . . . . . . . . . . . . . . . . . . 162
interface . . . . . . . . . . . . . . . . . . . . . . . . . . . . 84
internet trafﬁc . . . . . . . . . . . . . . . . . . . . . 203
interocular trauma test . . . . . . . . . . . . . . 5
iPlots . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 144
IQR . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 62

J
jittering. . . . . . . . . . . . . . . . .3, 36, 193, 205
JMP . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 128
JPEG. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .22

K
keyboard shortcut . . . . . . . . . . . . . . . . . . . 84
KLIMT . . . . . . . . . . . . . . . . . . . . . . . . . 178, 192

L
labels. . . . . . . . . . . . . . . . . . . . . . . . . . .31, 163
Lanarkshire Milk Experiment . . . . . . . 9
lattice graphics. . . . . . . . . . . . . . . . . . . . . .44
layout

bottom-up . . . . . . . . . . . . . . . . . . . . . . . 189
force . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 161
multi-dimensional scaling . . . . . 161
spring . . . . . . . . . . . . . . . . . . . . . . . . . . 161
individual node movement . . . . . . 162
language for description . . . . . . . . . 172
simple tree . . . . . . . . . . . . . . . . . . . . . . 159
Limn . . . . . . . . . . . . . . . . . . . . . . . . . . 126, 134
linking . . . . . . . . . . . . . . . . . . . . . 77, 89, 163
cold . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 86
hot . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 86
warm . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 86
links . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 157

Index

269

local . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4, 8
log normal . . . . . . . . . . . . . . . . . . . . . . . . . 204
long range dependence . . . . . . . 203–205

M
magniﬁcation . . . . . . . . . . . . . . . . . . . . . . . 92
. . . . . . . . . . . . . . . . . . . . . see also zooming
MANET . . . . . . . 78, 81, 86, 100, 128, 189
map . . . . . . . . . . . . . . . . . . . . . . . . . . . . 47, 246
choropleth . . . . . . . . . . . . . . 47, 247, 248
image . . . . . . . . . . . . . . . . see image map
linked micro . . . . . . . . . . . . . . . . . . . . . . 47
SIZer . . . . . . . . . . . . . . . . . . . . . . . . . . . . 223
median . . . . . . . . . . . . . . . . . . . . . . . . . . 37, 62
memory . . . . . . . . . . . . . . . . . . . . . . . . 10, 185
menu . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 74
pop-up . . . . . . . . . . . . . . . . . . . . . . . . 78, 85
Mice and Elephant plot . . . . . . . . . . . . 205
million

cases . . . . . . . . . . . . . . . . . . . . . 2, 128, 185
men . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3
nodes . . . . . . . . . . . . . . . . . . . . . . . . 23, 157
observations . . . . . . . . . . . . . . . . . . . . . 143
pitches . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2
points . . . . . . . . . . . . . . . . . . . . . . . . . 2, 137
telephone calls . . . . . . . . . . . . . . . . . . 167
transactions . . . . . . . . . . . . . . . . . . . . . . 96
tuples . . . . . . . . . . . . . . . . . . . . . . . . . . . . 134
women . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2
words . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6
missing value plot . . . . see plot, missing

value

missing values . . . . . . . . 19, 52, 177, 235
missings . . . . . . . . . . . . . . . . . . . . . . . . . . . 115
Mondrian . . . . . . . . . . . . . 78, 81, 128, 144
monotone missingness . . . . . . . . . . . . . . 53
mosaic plot . . . . . . . 33, 60, 105, 113, 235
χ2-diagram . . . . . . . . . . . . . . . . . 115, 116
ﬂuctuation diagram 46, 93, 115, 117,

194, 195, 235

multiple barcharts . . . . . . . . . . . . . . . . 46
same binsize . . . . . . . 46, 115, 117, 242
motion . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 129
movie . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 125
multiple views . . . . . . . . . . . . . . . . . . . . . . 98

N
navigation . . . . . . . . . . . . . . . . . . 61, 92, 192
networks . . . . . . . . . . . . . . . . . . . . . . . . . . . 157

270

Index

NicheWorks . . . . . . . . . . . . . . . . . . . 163, 166
nodes . 23, 157–166, 168, 172, 173, 175
norm-reducing property . . . . . . . . . . . 149

O
object-verb paradigm. . . . . . . . . . . . . . . .85
OLAP . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 47
OpenGL . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 22
Orca . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 128
ordering . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 59
. . . . . . . . . . . . . . . . . . see also reordering
ordinal data . . . . . . . . . . see data, ordinal
outlier . 1, 38, 39, 55, 62, 71, 82, 87, 89,

234, 242

overﬁtting . . . . . . . . . . . . . . . . . . . . 181, 189
overplotting 36, 55, 62, 63, 65, 99, 129,
154, 165, 193, 206, 235, 237

P
panning . . . . . . . . . . . . . . . . . . . 72, 108, 165
parallel coordinate plot41, 65, 143, 237
PCP. . . . . . . .see parallel coordinate plot
PDF . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 22
pdf-ﬁles . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 24
pixel-oriented . . . . . . . . . . . . . . . . . . . . . . . . 9
plausibility. . . . . . . . . . . . . . . . . . . . . . . . .228
plot

Andrews . . . . . . . . . . . see Andrews plot
area-based . . . . . . . . . . . . . . 56, 105, 195
box . . . . . . . . . . . . . . . . . . . . . . . see boxplot
contour . . . . . . . . . . . . . . . . . . . . . . . . . . . 49
dot. . . . . . . . . . . . . . . . . . . . . . . .see dotplot
doubledecker. . . . . . . . . . . . . . . . . . . . . .81
glyph-based . . . . . . . . . . . . . . . . . . . . . . . 62
hierarchical. . . . . . . . . . . . . . . . . . . . . .187
Mice and Elephant . . . . . see Mice and

Elephant plot

missing value . . . . . . . . . . . 52, 231, 232
mosaic . . . . . . . . . . . . . . . see mosaic plot
recursive . . . . . . . . . . . . . . . . . . . . . . . . 195
structure . . . . . . . . . . . . . . . . . . . . . . . . . . 51
sunﬂower . . . . . . . . . . . . . . . . . . . . . . . . . . 7
Tetris . . . . . . . . . . . . . . . . . see Tetris plot
weighted. . . . . . . . . . . . . . . . . . . . . . . . .107
PNG . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 22
point line duality . . . . . . . . . . . . . . . . . . . . 42
Poisson sampling . . . . . . . . . . . . . . . . . . 116
presentation . . . . . . . . . . . . . . . . . . . . . . . . . . 2
. . . . . . see also graphics, presentation

principal components . . . . . . . . . . . . . . 237
projection . . . . . . . . . . . . . . . . . . . . . . . . . . 125
pruning . . . . . . . . 158, 178, 181, 186, 188
PS . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 22

Q
quality . . . . . . . . . . . . . . . . see data, quality
quantile window sampling . . . . . . . . . see
sampling, quantile window
quantum zooming . . . . . . . . see zooming,

quantum

query . . . . . . . . . . . . . . 75, 77, 88, 163, 197

R
R . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 44, 184
random forests . . . . . . . . . . . . . . . . . . . . . 198
random sampling . . . . . . . . see sampling,

random

ratio of reduction . . . . . . . . . . . . . . . . . . 107
real-time . . . . . . . . . . . . . . . . . . . . . . . . . . . 128
redmarking. . .58, 87, 90, 106, 189, 232
rendering . . . . . . . . . . . . . . . . . . . . 7, 20, 136
reordering . . . . . . . . . . . . . . . . . 96, 110, 155
rescaling . . . . . . . . . . . . . . . . . . . . . . . 74, 122
rose diagram . . . . . . . . . . . . . . . . . . . . . . . 173
rotating plot, 3-D. . . . . . . . . . . . . . . . . . . .39
rpart . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 184

S
sampling

biased . . . . . . . . . . . . . . . . . . . . . . . . . . . 210
Box–Cox biased . . . . . . . . . . . . . . . . . 213
quantile window . . . . . . . . . . . . . . . . . 215
random . . . . . . . . . . . . . . . . . . . . . . . . . . 205
windows biased . . . . . . . . . . . . . . . . . . 211
saturation brushing . . . . . . see brushing,

saturation

scalability. . . . . . . . . . . . . . . .179, 181, 186
scale space . . . . . . . . . . . . . . . . . . . . . . . . . 223
scatterplot . . . . . . . . . . . . . . . . . . . . . . . 39, 63
binning . . . . . . . . . . . . . . . . . . . . . . . . . . . 67
matrix . . . . . . . . . . . . . . . . . . . . . . . . . . . . 39
sectioned . . . . . . . . . . . . . . . . . . . . . . . . 192
textured . . . . . . . . . . . . . . . . . . . . . . . . . 193
scientiﬁc visualization . . . . . . . . . . . . . 6, 7
screen

layout. . . . . . . . . . . . . . . . . . . . . . . . . . . .101
real estate . . . . . . . . . . . . . . 21, 125, 157

resolution . 63, 87, 90, 106, 126, 188,

196

scrolling . . . . . . . . . . . . . . . . 19, 60, 61, 108
second-order structures . . . . . . . . . . . . 154
sectioned scatterplot . . . see scatterplot,

sectioned

See5 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 185
selection . . . . . . . . . . . . . . . . . . . . . . . . . 77, 89
hot . . . . . . . . . . . . . . . . . . see hotselection
sequences . . . . . . . . . . . . . . . . . . . . . . . . . 78

shading

colour . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 47
depth . . . . . . . . . . . . . . . . . . . . . . . . . . . . 196
gray. . . . . . . . . . . . . . . . . . . . .50, 119, 131
shingling . . . . . . . . . . . . . . . . . . . . . . . . . . . . 45
Shneiderman’s mantra . . . . . 92, 95, 162
SIZer . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 223
skew data . . . . . . 114, 120, 123, 232, 237
slider . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 85
smoother . . . . . . . . . . . . . . . . . . . . . . . 45, 173
software . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 23
sorting . . . . . . . . . . . . . . . . . . . . . . . 60, 82, 96
barchart . . . . . . . . . . . . . . . . . . . . 110, 242
SpaceTree . . . . . . . . . . . . . . . . . . . . . . . . . 178
sparse data . . . . . . . . . . 61, 107, 162, 223
speed . . . . . . . . . . . . . . . . . . . . . . . . . . . 20, 164
spineplot . . . . . . . . . . . . . . . . . . . . . . . 32, 110
of leaves . . . . . . . . . . . . . . . . . . . . . . . . . 197
SPLOM . . . . . . . . . see scatterplot matrix
Spotﬁre . . . . . . . . . . . . . . . . . . . . . . . . . . . . 128
statistical object . . . . . . . . . . . . 74, 84, 173
storage . . . . . . . . . . . . . . . . . . . . . . . . . 18, 143
structure plot . . . . . . . see plot, structure
subsetting . . . . . . . . . . . . . . . . . . . . . . . . . . . 98
sunﬂower plot . . . . . . see plot, sunﬂower
surveys . . . . . . . . . . . . . . . . . . . . . . 25, 26, 99

T
TableLens . . . . . . . . . . . . . . . . . . . . . . . . . . . 52
tableplot . . . . . . . . . . . . . . . . . . . . . . . . . . . . 51
tail fragility . . . . . . . . . . . . . . . . . . . . . . . . 204
Tetris plot . . . . . . . . . . . . . . . . . . . . . . . . . . 199
textured scatterplot . . . . see scatterplot,

textured

Index

271

time series . . . . . . . . . . . 50, 209, 235, 242
TimeSearcher . . . . . . . . . . . . . . . . . . . . . . . 78
tonal highlighting . . . . see highlighting,

tonal

transactions . . . . . . . . . . . . . . . . . . . . . . . 203
transfer function . . . . . . . . . . . . . . 120, 131
transformations . . . . . . . . . . . . . . . . 99, 232
transparency . . . . . . . . . . . . . . . . . . . 69, 164
tree . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 184
treemaps . . . . . . . . . . . . . . . . . . . . . . . . . . . 195
trees . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 177
trellis displays . . . . . . . . . . . . . . . . . . . . . . 44

V
variable

continuous . . . . . . . . . . 45, 86, 228, 237
nominal . . . . . . . . . . . . . . . . . . . . 107, 228
ordinal. . . . . . . . . . . . . . . . . . . . . .179, 228
spatial . . . . . . . . . . . . . . . . . . . . . . . . . . . 228
visualization . . . . . . . . . . . . . . . . . . . . . . . 2–4
VizML . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 173

W
warnings . . . . . . . . . . . . . . . . . . . . . . . . . . . . 87
website . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 24
weighting20, 97, 99, 107, 157, 199, 242
whiskers . . . . . . . . . . . . . . . . . . . . . . . . . . . . 38
windowed biased sampling . . . . . . . . . see
sampling, windows biased

X
XLispStat . . . . . . . . . . . . . . . . . . . . . . . . . . . 128
XmdvTool . . . . . . . . . . . . . . . . . . . . . 128, 144

Z
zipcodes . . . . . . . . . . . . . . . . . . . . . . . 229, 246
zooming. . .64, 65, 89, 92, 108, 163, 206
censored . . . . . . . . . . . 90, 122, 189, 238
logical . 60, 61, 68, 90, 110, 112, 164,

192

mosaic plot. . . . . . . . . . . . . . . . . . . . . . . .61
quantum . . . . . . . . . . . . . . . . . . . . . . . . . . 90

